简体   繁体   中英

filter: progid:DXImageTransform 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.Microsoft.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?

您可以使用IE条件注释来提供带有filter的其他样式表。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM