创建IE各版本专属CSS IE中的if语句
更新时间:2007年09月27日 19:26:56 作者:
http://5key.net/blog/article.asp?id=309
IE下专属CSS:
<![if !IE]>
<link rel="stylesheet" type="text/css" href="NOT-IE.css" />
<![endif]>
IE 6 ONLY:
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="IE-6-SPECIFIC.css" />
<![endif]-->
IE 5 ONLY:
<!--[if IE 5]>
<link rel="stylesheet" type="text/css" href="IE-5-SPECIFIC.css" />
<![endif]-->
IE 5.5 ONLY:
<!--[if IE 5.5000]>
<link rel="stylesheet" type="text/css" href="IE-55-SPECIFIC.css" />
<![endif]-->
IE6或更低:
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="IE-6-OR-LOWER-SPECIFIC.css" />
<![endif]-->
非IE:
<![if !IE]>
<link rel="stylesheet" type="text/css" href="REAL-STYLESHET.css" />
<![endif]>
IE下专属CSS:
复制代码 代码如下:
<![if !IE]>
<link rel="stylesheet" type="text/css" href="NOT-IE.css" />
<![endif]>
IE 6 ONLY:
复制代码 代码如下:
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="IE-6-SPECIFIC.css" />
<![endif]-->
IE 5 ONLY:
复制代码 代码如下:
<!--[if IE 5]>
<link rel="stylesheet" type="text/css" href="IE-5-SPECIFIC.css" />
<![endif]-->
IE 5.5 ONLY:
复制代码 代码如下:
<!--[if IE 5.5000]>
<link rel="stylesheet" type="text/css" href="IE-55-SPECIFIC.css" />
<![endif]-->
IE6或更低:
复制代码 代码如下:
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="IE-6-OR-LOWER-SPECIFIC.css" />
<![endif]-->
非IE:
复制代码 代码如下:
<![if !IE]>
<link rel="stylesheet" type="text/css" href="REAL-STYLESHET.css" />
<![endif]>
相关文章
大家看了就明白了css样式中类class与标识id选择符的区别小结
大家看了就明白了css样式中类class与标识id选择符的区别小结...2007-12-12
css 兼容性问题this.style.cursor=''''hand''''
css 兼容性问题this.style.cursor='hand'让我们来CSS HACK2008-11-11
flash幻灯片需要先激活ActiveX控件才能使用的又一个办法
flash幻灯片需要先激活ActiveX控件才能使用的又一个办法...2007-11-11


最新评论