我對這個問題感到困惑。 我想爲圖標字體添加動畫顏色,它在所有現代瀏覽器中都能正常工作,但在IE 8中無法正常工作!動畫顏色web圖標字體在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');
http://stackoverflow.com/questions/7526251/resolved-jquery-animate-not-doing-anything-in-ie8 – SivaRajini