What are pros and con开发者_运维知识库s of using a .htc file in CSS?
I don't know the Pros (there might be, I just don't know them). One of the Cons is that it can only be used in IE and is completely non-standard.
Another con is that it looks like Internet Explorer 10 will remove them in standards and quirks mode. You can still use them in IE 10 if you change the document mode to be IE 9 or earlier.
Support for element behaviors has been removed in Windows Internet Explorer 10 Consumer Preview standards and quirks modes for improved interoperability and compliance with HTML5. This means elements previously bound to Element Behaviors will be treated as generic elements, just like in other browsers. This change can impact pages written exclusively for Windows Internet Explorer or pages that use browser sniffing to alter their behavior in Internet Explorer.
精彩评论