在兼容模式下,IE7和IE8的这种条件css加载是否适用于IE8? [英] Does this conditional css loading for IE7 and lower work for IE8 in compability mode?
问题描述
IE7中的条件css加载是否在兼容模式下为IE8工作?
Does this conditional css loading for IE7 and lower work for IE8 in compability mode?
<!--[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 / introduction-compatibility-view.aspx - >这清楚地说兼容性视图是强制IE8渲染像IE-7这样的页面。
http://blogs.msdn.com/b/ie/archive/2008/08/27/introducing-compatibility-view.aspx -> This clearly says compatibility view is to force IE8 render a page like IE-7.
如果您已安装IE开发人员工具栏(安装并使用IE开发人员工具栏),您可以检查渲染时是否使用CSS或运行脚本@ 检测浏览器以检查您正在使用的浏览器。
If you have installed IE developer toolbar ( Install and use IE developer toolbar ), you can check if the CSS is used while rendering OR run the script @ Detect Browser in compatibility mode to check which browser you're hitting.
这篇关于在兼容模式下,IE7和IE8的这种条件css加载是否适用于IE8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!