我有this site。在页脚中,我有一个包含社交图标的列表。悬停图像效果CSS
这是HTML代码:为.social-list
<div class="social-list">
<ul>
<li id="first"><img src="http://eventos.dac-proiect.ro/wp-content/themes/eventos/images/gri1.png" alt="Smiley face" height="30" width="30"></li>
<li><img src="http://eventos.dac-proiect.ro/wp-content/themes/eventos/images/gri2.png" alt="Smiley face" height="30" width="30"></li>
<li><img src="http://eventos.dac-proiect.ro/wp-content/themes/eventos/images/gri3.png" alt="Smiley face" height="30" width="30"></li>
<li><img src="http://eventos.dac-proiect.ro/wp-content/themes/eventos/images/gri4.png" alt="Smiley face" height="30" width="30"></li>
<li><img src="http://eventos.dac-proiect.ro/wp-content/themes/eventos/images/gri5.png" alt="Smiley face" height="30" width="30"></li>
</ul>
</div>
这是CSS代码:
.social-list {
float: left;
display: inline-block;
margin-left: -92px;
}
我要创建在图像的效悬停。
我想这样做,但它不工作:
#first:hover {
background:url("http://eventos.dac-proiect.ro/wp-content/themes/eventos/images/roz1.png");
}
什么是错的代码?
我没有看到您的网站上的第一个锂的任何ID。缓存问题? – Brewal 2015-03-03 14:13:24
你想创建什么样的效果? – bbvanee 2015-03-03 14:14:41
请说明你想要什么样的效果? – Kumar 2015-03-03 14:14:56