【发布时间】:2011-02-13 08:58:13
【问题描述】:
好的,所以我有一个完整的图像表,并且只想在悬停时始终在每个图像的右下角显示一个小图标。任何想法我如何做到这一点?现在我有这个,它只是每次都在同一个位置显示悬停图像......它需要显示在悬停图像的顶部。谢谢!
.enlargeImage {
background:url(images/xxx) no-repeat;
position:absolute;
width:16px;
height:14px;
z-index:200;
display:none;
}
$('.table_imageThumbs a').mouseover(function(){
$(this).show('.enlargeImage');
});
<div class="enlargeImage"></div>
<table width="408" class="table_imageThumbs">
<tr>
<td width="102" class="td_thumb"><a><image width="75" height="97" class="img_vertThumb"></a></td>
<td width="102"><a><image width="75" height="97" class="img_vertThumb"></a></td>
<td width="102"><a><image width="75" height="97" class="img_vertThumb"></a></td>
<td width="102"><a><image width="75" height="97" class="img_vertThumb"></a></td>
</tr>
</table>
【问题讨论】:
标签: javascript jquery html css