这是我的html:
<li><a href=""><div class="arrow"></div>List Item</a></li>
在用鼠标悬停“列表项”时,如何更改类“箭头”的背景图像?类箭头只是每个列表项前面的导航图像。
这是我的CSS:
.arrow {
background: transparent url('../images/arrow.png') center center no-repeat;
width:16px;
height:16px;
float: left;
padding:0;
margin-right:1em;
}
.arrow:hover {
background: transparent url('../images/arrow_hover.png') center center no-repeat;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句