Html 条件注释未按预期工作
我正在开发一个网站,我发现come的内容在IE上显示不正确,所以我想用其他与IE兼容的内容替换它们 这就是我正在使用的:Html 条件注释未按预期工作,html,internet-explorer,conditional-comments,Html,Internet Explorer,Conditional Comments,我正在开发一个网站,我发现come的内容在IE上显示不正确,所以我想用其他与IE兼容的内容替换它们 这就是我正在使用的: <!--[if !IE]> --> <div id="container"> This is not IE, you are seeing the normal content </div> <!-- <![endif]--> <!--[if IE]> <d
<!--[if !IE]> -->
<div id="container">
This is not IE, you are seeing the normal content
</div>
<!-- <![endif]-->
<!--[if IE]>
<div id="container">
This is IE, you are seeing IE-compatible content
</div>
<![endif]-->
但在IE 10关闭兼容模式的情况下,我明白了
This is not IE, you are seeing the normal content
为什么?
对于那些想尝试的人:IE10中不再有条件评论了Internet Explorer 10,因此它们现在被视为常规评论。这里已经告诉过:
This is not IE, you are seeing the normal content