如何修复IE6上的不透明度 [英] how to fix opacity on IE6
本文介绍了如何修复IE6上的不透明度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何修复IE6上的不透明度
how to fix opacity on IE6
此代码不适用于IE6!
This code does not work on IE6 !
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
此代码!
$('#description').animate({opacity: 0.0}, 1000);
推荐答案
如果您使用 opacity
(在jQuery中),然后 fadeIn
, faceOut
和 fadeTo
功能应该优于 animate
。在你的情况下,它将是
If you're working with opacity
in jQuery, then the fadeIn
, faceOut
and fadeTo
function should be better than animate
. In your case it would be
$('#description').fadeOut(1000);
或使用 fadeTo
,
$('#description').fadeOut(1000, 0.0);
但它是在IE6的工作! :(
But it is work on IE6! :(
它不工作?
这篇关于如何修复IE6上的不透明度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文