开发者

jQuery fadeOut() on Divs with Background Color in IE

开发者 https://www.devze.com 2023-01-25 08:54 出处:网络
I have a开发者_Go百科 Javascript function that fades out a standard div with a background color using jQuery fadeOut(). It works fine in Chrome & Firefox but when I try it in IE, the text fades ou

I have a开发者_Go百科 Javascript function that fades out a standard div with a background color using jQuery fadeOut(). It works fine in Chrome & Firefox but when I try it in IE, the text fades out but the background color remains the same and just disappears without fading out once the text fade has finished. Does anyone have a solution for this problem?

Thanks,

DLiKS


Try removing the clearType filter that IE applies:

$('#fadingElement').fadeIn(2000, function(){
    $(this).css('filter','');
});
0

精彩评论

暂无评论...
验证码 换一张
取 消