Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 根据浏览器使用特定的.js_Html_Internet Explorer - Fatal编程技术网

Html 根据浏览器使用特定的.js

Html 根据浏览器使用特定的.js,html,internet-explorer,Html,Internet Explorer,我只是想知道为什么这不起作用: 如果您试图使用IE8 <!--[if IE 8]> According to the conditional comment this is IE 8<br /> <![endif]--> 在这里看到更多 谢谢你的回答 最后,我修改了我的js代码,使之适合IE和Firefox。我用过这个: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

我只是想知道为什么这不起作用:


如果您试图使用IE8

<!--[if IE 8]>
According to the conditional comment this is IE 8<br />
<![endif]-->

在这里看到更多

谢谢你的回答

最后,我修改了我的js代码,使之适合IE和Firefox。我用过这个:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

我还读到IE=>9不再识别IE的条件。

可能重复的