只在IE下生效 if语法中可以书写css语法加载不同的css,js <!--[if IE]> 这段文字只在IE浏览器显示 <![endif]--> 只在IE6下生效 <!--[if IE 6]> 这段文字只在IE6浏览器显示 <![endif]--> 只在IE6以上版本生效 <!--[if gte IE 6]> 这段文字只在IE6以上(包括)版本IE浏览器显示 <![endif]--> 只在IE8上不生效 <!--[if ! IE 8]> 这段文字在非IE8浏览器显示 <![endif]--> 非IE浏览器生效 <!--[if !IE]> 这段文字只在非IE浏览器显示 <![endif]--> 小于IE9,以阿里云备案阻断页面为例
<!--[if lt IE 9]> |
|
<link type="text/css" rel="stylesheet" href="//g.alicdn.com/??aliyun/www-dpl/0.3.49/knight/css/widget/header-ie.css" /> | |
<script type="text/javascript" src="//g.alicdn.com/??aliyun/www-dpl/0.3.49/knight/js/html5.js"></script> | |
<![endif]--> |