Does this conditional css loading for IE7 and lower work for IE8 in compability mode?

别来无恙 提交于 2019-12-11 06:17:06

问题


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]-->

回答1:


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.

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.



来源:https://stackoverflow.com/questions/4759864/does-this-conditional-css-loading-for-ie7-and-lower-work-for-ie8-in-compability

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!