[英]Does <meta http-equiv=“X-UA-Compatible” content=“IE=Edge” /> disables conditionals?
We must add conditionals for loading different js and css to fix the compatibility issues. 我们必须添加条件来加载不同的js和CSS,以解决兼容性问题。
But I hate when the compatibility mode unfixes some things, so I read that adding this line disables that mode and so far in a site I tested worked like a charm: 但是我讨厌兼容性模式无法解决某些问题,因此我读到添加此行会禁用该模式,到目前为止,在我测试过的网站中,它的工作原理很不错:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
So, I read also that this disables the use of conditional tags like: 因此,我还阅读到这会禁用条件标签,例如:
<!--[if lt IE 7]>
Is it true? 是真的吗
Internet Explorer 10+禁用条件注释,因此,如果用户使用IE10,则可以,如果您在标记中设置了此声明,则将忽略条件注释。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.