IE 中具有背景颜色的 Div 上的 jQuery fadeOut()

发布于 2024-10-03 08:52:48 字数 185 浏览 0 评论 0原文

我有一个 Javascript 函数,可以使用 jQuery fadeOut() 淡出带有背景颜色的标准 div。它在 Chrome 和 Chrome 中运行良好。 Firefox,但当我在 IE 中尝试时,文本淡出,但背景颜色保持不变,并且在文本淡出完成后就消失而不淡出。有人有解决这个问题的办法吗?

谢谢,

DLiKS

I have a 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

新人笑 2024-10-10 08:52:48

尝试删除 IE 应用的clearType 过滤器:

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

Try removing the clearType filter that IE applies:

$('#fadingElement').fadeIn(2000, function(){
    $(this).css('filter','');
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文