当鼠标悬停在图片上时,我想将图片从普通变成更亮的。我的代码:
<div class="nkhome">
<a href="Home.html"><img src="Images/btnhome.png" /></a>
</div>
.nkhome{
margin-left:260px;
top:170px;
position:absolute;
width:59px;
height:59px;
}
.nkhome a img:hover {
background:url(Images/btnhomeh.png);
position:absolute;
top:0px;
}
为什么鼠标悬停没有效果?当我的鼠标在上面时,显示的是第一张图片而不是悬停图片。