css - 在兼容模式下,IE7 和更低版本的这种条件 css 加载是否适用于 IE8?

标签 css internet-explorer internet-explorer-8 internet-explorer-7 conditional-statements

IE7 和更低版本的这种条件 css 加载是否适用于兼容模式下的 IE8?

<!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="ie7-and-down.css" />
<![endif]-->

最佳答案

http://blogs.msdn.com/b/ie/archive/2008/08/27/introducing-compatibility-view.aspx -> This clearly says compatibility view is force IE8 render a page like IE-7. 这清楚地表明兼容性 View 是强制 IE8 呈现像 IE-7 这样的页面。

如果您安装了 IE 开发人员工具栏 (Install and use IE developer toolbar),您可以检查渲染时是否使用了 CSS 或运行脚本 @ Detect Browser在兼容模式下检查您使用的是哪个浏览器。

关于css - 在兼容模式下,IE7 和更低版本的这种条件 css 加载是否适用于 IE8?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4759864/

相关文章:

php - 为画廊分层图像的最佳方式是什么?

css - ionic 卡恒定高度

c++ - 为什么 Microsoft 有 IHTMLDocument、IHTMLDocument2、...、IHTMLDocument8?

javascript - 如何使用 Javascript 在 chrome 中禁用保存密码气泡?

html - float DIV 在底部添加填充

javascript - 访问被拒绝 contentWindow iframe IE9

IE 上的 CSS 兼容性。盒子阴影

javascript - 检测 IE8 中的 mouseout 事件

c# - BHO 暴露 javascript 方法在 IE 9+ 中有效,但在早期版本中失败

css - 如何使用 PostCSS 在 Vue 中导入全局 css?