我正在开发一个网站,我发现IE上的新内容不能正确显示,所以我想用其他与IE兼容的内容替换它们。
这就是我正在使用的:
<!--[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,甚至是兼容模式打开的版本10
This is IE, you are seeing IE-compatible content但是在IE 10关闭兼容模式的情况下,我发现
This is not IE, you are seeing the normal content为什么?
对于那些想要尝试它的人:JSFiddle
发布于 2013-04-22 18:20:07
IE10中不再有条件注释
发布于 2013-04-22 18:26:50
Internet Explorer10 removed support for conditional comments,因此它们现在被视为常规注释。
https://stackoverflow.com/questions/16144663
复制相似问题