我不明白 behavior
和 -ms-behavior
之间的区别。我以为行为已经只适用于 Microsoft 的 Internet Explorer,那么为什么会有供应商前缀版本?
同时使用或仅使用 -ms-behavior
是否有意义?
最佳答案
Internet Explorer
版本 5 及以上 支持 behavior 属性
。
Internet Explorer Version 8 supports the syntactically correct Vendor Specific Extension format of-ms-behavior.
大多数时候你只需要行为
,除非你想完全强制IE8版本
在标准模式
下运行。那么你应该使用 ms-behavior
。但同时添加两者对您没有任何伤害,无论如何这可能是一种很好的做法。
关于html - 行为和 -ms-behavior 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31018466/