【发布时间】:2013-12-20 00:52:07
【问题描述】:
我有一个类似的 CSS 精灵:
HTML
<a id="estates" href="http://www.domain.com/estate"></a>
CSS
#estates {background-position: -200px 0px;width: 96px;height: 90px;}
#estates {background: url("http://www.domain.com/images/sprite.png") no-repeat scroll 0% 0% transparent;float: left;margin: 22px -2px 30px 33px;}
我希望用户将鼠标悬停在链接上以将图像颜色更改为黑白,或者如果无法实现,我可能会覆盖透明 png?
【问题讨论】: