我有一个客户谁拥有一个HTML表格布局(ick,我知道)在一行图像,然后在下一行相应的文本链接。图像和文字都是分开的超链接,没有下划线的样式(这里没有显示代码)。HTML表和悬停图像和链接
<table>
<tr>
<td><a href="product1"><img src="productimage1.jpg" /></a></td>
<td><a href="product2"><img src="productimage2.jpg" /></a></td>
<td><a href="product3"><img src="productimage3.jpg" /></a></td>
<td><a href="product4"><img src="productimage4.jpg" /></a></td>
</tr>
<tr>
<td><a href="product1">Product1</a></td>
<td><a href="product2">Product2</a></td>
<td><a href="product3">Product3</a></td>
<td><a href="product4">Product4</a></td>
</tr>
</table>
我知道在CSS中,可以在文本链接上实现下划线悬停。问题是,用户是否可以将鼠标悬停在图像上(在表格行中)并且相应的文本链接(在下一个表格行中)是否有下划线?例如,如果我将鼠标悬停在“productimage3.jpg”上,那么我希望Product3链接带下划线(并且在悬停关闭时不加下划线)。我想象一下jQuery可以做些什么,但我是一个jQuery新手。
感谢大卫!这工作很好。 – EdK