我在选择单元格表内的链接时遇到问题。我想在访问链接时更改另一个元素。有可能吗?
.tg-0lax a:visited ~ .tg-1lax .unvisited {
color: rgba(230, 0, 0, 1);
text-decoration: line-through;
}
<table id="tg-mrxl9" class="tg" style="undefined;table-layout: fixed; width: 100%">
<colgroup>
<col style="width: 81px">
<col style="width: 144px">
<col style="width: 145px">
<col style="width: 151px">
<col style="width: 95px">
</colgroup>
<tbody>
<tr>
<td class="tg-0lax"><a class="ilink" href="https://google.com" target="_blank">link</a></td>
<td class="tg-1lax"><span class="unvisited">un</span>visited</td>
</tr>
<tr>
<td class="tg-0lax"><a class="ilink" href="https://google.com" target="_blank">link</a></td>
<td class="tg-1lax"><span class="unvisited">un</span>visited</td>
</tr>