How to make image hover in css?
问题 I want to change the image from normal to brighter when it's on hover, My code: <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; } Why doesn't work the hover? When my mouse is on it, it shows the first image, not the hover image. 回答1: You've got an a tag containing an img tag. That's your