为什么在 Internet Explorer 11 中无法识别 HTML 中的条件注释?现在不支持吗?

Raj*_*ana 3 html internet-explorer conditional-comments internet-explorer-11

我想在不同的浏览器上显示不同的内容。我使用了 Internet Explorer 11 和 Google Chrome 39。但是,在 Internet Explorer 和所有其他浏览器中显示“非 Internet Explorer”。代码有问题吗?我看到以下代码作为同一问题之一的答案,那么为什么它现在不起作用?

代码:

<!DOCTYPE html>
<html>
<body>

<!--[if (IE)]><p>This is Internet Explorer</p><![endif]-->

<!--[if !(IE)]><!--> Not Internet Explorer <!--<![endif]-->

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

Rob*_*Rob 6

从版本 10 开始,Microsoft在 Internet Explorer 中删除了条件注释