【发布时间】:2013-05-27 09:02:39
【问题描述】:
我对这个问题感到困惑。 我想动画图标字体的颜色,它在所有现代浏览器中都可以正常工作,但在 IE 8 中不行!
我们有一个链接:
<a id="newsletter_subbut"><i class="icon-web-mail"></i></a>
这是我的 CSS 代码:
#newsletter_subbut {
border: none;
height: 30px;
width:40px;
margin-left: -8px;
font-size:22px;
position:absolute;
display:inline-block;
padding-top:9px;
bottom:0px;
z-index: 1;
}
.icon-web-mail:before {
font-family: 'batch';
speak: none;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
content: "\F14C";
}
这是我的 jQuery 代码:
$('#newsletter_subbut').find("i").stop().animate({color: "#fa2a18"},'slow');
【问题讨论】:
标签: jquery html css jquery-animate