我正在处理这个,可能很简单的解决方案,但我找不到任何有关此特定问题的计算器或互联网上的帮助。使图像出现在链接悬停css
我有一个菜单,我想让图像显示在链接下,或者当您将鼠标悬停在其上时关闭。我希望这可以在CSS中完成。这是我的代码到目前为止。
HTML
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="startpage.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div id="wrapper">
<img id="baggrund" width="166" height="327" alt="back image" src="images/laerkeryg.jpg"/>
<img id="cirkler" width="319" height="249" alt="circles" src="images/circles.PNG"/>
<div id="header">/jacob gerlif pilegaard/</div>
<div id="underheader">portfolio</div>
<ul>
<li><a href="index.html">home</a></li>
<li><a href="about.html">about</a></li>
<li><a href="gallery.html">gallery</a></li>
<li><a href="contact.html">contact</a></li>
</ul>
</div>
<img id="menucircle" width="50" height="50" alt="menu circle" src="images/circle.PNG"/>
</body>
</html>
这是CSS至今:
a:hover
{
background-image: url('image/circle.PNG');
background-repeat: no-repeat;
}
希望你们能帮帮我!
似乎对我很好吗? [fiddle](http://jsfiddle.net/venkateshwar/wW8aW/) –