开发者

filter: progid:DXImageTransform fails W3C CSS validation

开发者 https://www.devze.com 2023-01-27 21:49 出处:网络
I am using the following three lines in CSS to enable smooth transitions between \"slides\", but line #1 fails W3C CSS validation.

I am using the following three lines in CSS to enable smooth transitions between "slides", but line #1 fails W3C CSS validation.

filter: progid:DXImageTransform.Microso开发者_C百科ft.alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;  

Is there a way to reformulate the same intent (smooth transitions through alpha blending) but with methods that won't fail validation?


You can use IE conditional comments to serve a different stylesheet with the filter in it.


Check out CSS Opacity Properties? , they are using " " around progid:DXImageTransform.Microsoft.alpha(opacity=100) which clears validation.

I assume the CSS still works correctly.

0

精彩评论

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

关注公众号