我正在开发一个网站,我看到内容在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与兼容模式OFF我看
This is not IE, you are seeing the normal content
为什么?
对于那些谁愿意尝试:JSFiddle
已经告诉这里: http://stackoverflow.com/questions/9900311/how-do-i-target-only-internet-explorer-10-for-certain-situations-like-internet-e – Flowen 2013-04-22 10:25:14