开发者

Why does this css class have 3 different filter settings?

Are these for cross browser reasons?

Hoping someone can explain them to 开发者_JAVA百科me:

opacity:.50;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter:alpha(opacity=50)


It is for cross-browser compatibility. Take a look over here and here for an explanation.

This is for IE:

-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter:alpha(opacity=50)

This will work in pretty much everything else:

opacity:.50;


Different companies using their own implementation in their browser. CSS3 officially recognizes the 'opacity' property.


Firefox, IE, other browsers require different CSS entries to render alpha blending.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜