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/