.chacha {
display: block;
text-indent: -9999px;
background: #efefef;
background: url(https: //
img.alipay.com/home/chacha.png) no-repeat -2px -3px\0;
width: 17px;
height: 17px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
cursor: pointer;
position: absolute;
top: 60px;
left: 189px;
-webkit-transition: all .5s ease-in-out;
-moz-transition: all .5s ease-in-out;
-o-transition: all .5s ease-in-out;
transition: all .5s ease-in-out;
}
.chacha:before,.chacha:after {
content: "";
display: block;
display: none\0;
width: 3px;
height: 11px;
position: relative;
left: 7px;
top: 3px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background: #bcbbbb;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.chacha:after {
top: -8px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.chacha: hover {
-webkit-box-shadow: 0 0 4px #aaa;
-moz-box-shadow: 0 0 4px #aaa;
box-shadow: 0 0 4px #aaa;
}
整理了一下,出现了\0所以FIREBUG没读取,但是火狐本身却显示了出来。
一个小图标整这么多代码,是想表达什么呢?难道没有更简单的方法吗?