如果是IE 9 - 没有加载

时间:2013-12-12 23:52:45

标签: html5 internet-explorer

我在测试网站的标题中有以下代码:

<!--[if lt IE 9]>
<link rel="stylesheet" href="styles/ie8.css" />
<![endif]-->
<link rel="stylesheet" href="styles/styles.css">

但是当我在文件模式IE8中对IE10进行测试时,ie8.css根本没有加载。 有谁知道为什么会这样?

1 个答案:

答案 0 :(得分:1)

Internet Explorer 10是no longer support Conditional Comments的第一个Internet Explorer浏览器。当您模拟旧浏览器时,此支持也不存在。

如果您希望在Internet Explorer 8中对此进行测试,我建议您考虑从http://modern.ie下载包含Internet Explorer 8的免费虚拟机,或者启动Windows XP和Internet Explorer 8的虚拟实例在http://browserstack.com

相关问题