问题
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