how to fix opacity on IE6

ⅰ亾dé卋堺 提交于 2019-12-04 12:38:36

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);

Or with fadeTo,

$('#description').fadeOut(1000, 0.0);

But it is work on IE6! :(

http://jsbin.com/owisa/3

Where it is not work?

Your styled element needs to have layout for the filter to render properly.

Try:

filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
display: inline-block;

Or:

filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
zoom: 1;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!