jQuery IE Cleartype在fadeout上出现故障! [英] jQuery IE Cleartype glitch on fadeout!
问题描述
请不要指向我关于这个问题的更多文章我想我已经全部阅读过了...
我有一个div,里面有一些文本,我只是想在jQuery中淡出它:
Please do not point me to more articles about this issue I think I've read them all... I have a div that has some text in it and I just wanted to fade it out in jQuery:
$(document).ready(function(){
$('#dHeaderMessage').fadeOut(12000, function() {
});
});
这种方法正确淡出,但当页面首次加载时,此div内的文本看起来很糟糕(IE8 )。所以我用谷歌搜索它,它提到了IE的一些ClearType字体问题。
解决方法是在javascript中删除过滤器,如下所示:
This fades out correctly but the text inside of this div looks awful when the page first loads up (IE8). So I googled it and it mentioned its some ClearType font issue with IE. The workaround was to remove a "filter" in javascript like so:
document.getElementById('dHeaderMessage')。style。 removeAttribute(filter);
但这似乎没有任何改变......所以我试着在jQuery中正确地做:
But this did not seem to make any change...so I tried doing it right within the jQuery:
$('#dHeaderMain').fadeOut(12000, function() {
this.style.removeAttribute("filter");
});
文本看起来仍然模糊不清...
如何解决这个问题?
Still the same issue the text looks blurry... How can I solve this?
推荐答案
以下是你可以做的事情:
Here is what you can do:
$('#dHeaderMessage')。延迟(20000).fadeOut('slow');
这篇关于jQuery IE Cleartype在fadeout上出现故障!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!