0
我正试图在一些图像上添加一些悬停效果。将图像悬停在另一张图像上
<div id="horizontal_list">
<div class="grid_3 first overlay">
<a href="#">
<img border="0" alt="first" src="path">
</a>
</div>
<div class="grid_3 overlay">
<a href="#">
<img border="0" alt="first" src="path">
</a>
</div>
</div>
当我徘徊与覆盖类我想另一个图像悬停在imagetag顶部的DIV ..
我已经得到了下面的CSS:
#horizontal_list{
margin-top: 18px;
height: 330px;
}
.grid_3{
display: inline;
float: left;
margin-left: 10px;
margin-right: 10px;
}
.first{
margin-left: 0px !important;
}
.last{
margin-right: 0px !important;
}
.overlay{
height: 330px;
}
.overlay:hover{
background: url('path') no-repeat;
}
嗯..我还是要显示的原始图像。第二图像是透明覆盖.. – ffffff01 2012-03-31 23:47:00
做,你还是要在图像秀(在透明覆盖层下面)有一个固定的高度? – 2012-04-01 08:47:09
是的,我想要悬停的所有图像都有相同的高度和宽度。 – ffffff01 2012-04-01 09:57:14