开发者

How to apply css filter in mozilla?

filter: progid:DXImageTransform.Microsoft.Alpha(style=1,opacity=80 ); opacity: 0.5; -moz-opacity: 0.5

This works well with IE but I want this to work in mozilla also. What is the 开发者_如何学Gosolution?


These are three definitions that do the same thing:

filter: progid:DXImageTransform.Microsoft.Alpha(style=1,opacity=80 ); // IE only
opacity: 0.5; // CSS 2, FireFox supports this from version 3
-moz-opacity: 0.5 // FireFox only, pre 3.x versions

See opacity on QuirksMode, CSS compatibility on QuirksMode

So, it does work in Mozilla FireFox in versions 3.x and higher.


opacity:0.5 should be working in mozilla, see https://developer.mozilla.org/en/CSS/opacity

Have you ran firebug or anything to see if the another style is being applied?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜