iv看了看哪里,大多数人都在先改变背景:p有什么方法可以直接改变颜色而不改变背景吗?非常感谢,示例将不胜感激:)))
只需在CSS上使用“颜色”即可。样品:
<div>
<i class="icon-5x icon-search red"></i>
</div>
<div>
<i class="icon-5x icon-search green"></i>
</div>
<div>
<i class="icon-5x icon-search blue"></i>
</div>
然后为它着色:
div {
width:200px;
height:80px;
background: grey;
margin-bottom: 6px;
}
i.icon-5x {
display:block;
text-align: center;
}
i.green {color:green}
i.blue {color:blue}
i.yellow {color:yellow}
最后:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句