Q
IE中的文本扭曲
2
A
回答
5
IE有一個問題,即一旦修改了DOM的某些部分,就會停止使用消除鋸齒。有一些變通辦法(谷歌爲這些)。我認爲IE9修復了這個問題。
看到這個問題: jQuery fadeIn leaves text not anti-aliased in IE7
連接,在似乎已經死了。
其中這兩個變化可能會幫助(你可以有哪些元素進行實驗,並將其應用到):
myElement.style.filter = '';
或
$(myElement).removeAttr('style');
其他信息: http://reference.sitepoint.com/css/haslayout http://reference.sitepoint.com/css/filter
2
Internet Explorer中擺脫抗鋸齒的!
1
這是一個自定義淡入/淡出/淡入解決您的問題
(function($) {
$.fn.customFadeIn = function(speed, callback) {
$(this).fadeIn(speed, function() {
if(!$.support.opacity)
$(this).get(0).style.removeAttribute('filter');
if(callback != undefined)
callback();
});
};
$.fn.customFadeOut = function(speed, callback) {
$(this).fadeOut(speed, function() {
if(!$.support.opacity)
$(this).get(0).style.removeAttribute('filter');
if(callback != undefined)
callback();
});
};
$.fn.customFadeTo = function(speed,to,callback) {
return this.animate({opacity: to}, speed, function() {
if (to == 1 && jQuery.browser.msie)
this.style.removeAttribute('filter');
if (jQuery.isFunction(callback))
callback();
});
};
})(jQuery);
相關問題
- 1. QTextEdit中的文本扭曲
- 2. IE扭曲JQuery淡入淡出/不透明動畫文本
- 3. 扭曲和扭曲Movieclip
- 4. textField中的扭曲
- 5. Python的扭曲文檔
- 6. Python的扭曲:扭曲海螺文件傳輸verifyHostKey
- 7. cuda中的線程/扭曲本地鎖
- 8. 修復Leptonica中的本地扭曲1.68
- 9. Bash腳本捲曲請求與扭曲
- 10. 調用本地(在內存中)扭曲
- 11. 的Java文件複製扭曲文件
- 12. 如何扭曲Actionscript 3.0中的文本字段?
- 13. 扭曲的錯誤
- 14. 扭曲的python TCP4ServerEndpoint
- 15. 扭曲的Python getPage
- 16. Python扭曲的sendLine()
- 17. CATiledlayer扭曲CGPath
- 18. 學習扭曲
- 19. 在扭曲
- 20. JTable autoresize,扭曲?
- 21. 扭曲在https
- 22. python3.5扭曲?
- 23. 使用扭曲
- 24. 設置基本的扭曲電抗器
- 25. IE9顯示扭曲版本的網站
- 26. 扭曲多邊形(如Photoshop的扭曲)(透視轉換)
- 27. 扭曲得到POST請求的正文
- 28. 用扭曲的方式監視文件
- 29. IE(7?)是否扭曲來自精靈的背景?
- 30. UISlider扭曲圓角
沒有任何解決方案似乎對我有用。 – Neeraj 2011-01-31 12:23:31