开发者

Why does this css class have 3 different filter settings?

开发者 https://www.devze.com 2022-12-10 02:06 出处:网络
Are these for cross browser reasons? Hoping someone can explain them to 开发者_JAVA百科me: opacity:.50;

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

精彩评论

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