页面导航: 首页网络编程CSS/HTML经验交流 → 正文内容

创建IE各版本专属CSS IE中的if语句

发布:dxy 字体:[增加 减小] 类型:转载
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]> 

浏览次数:载入中... 打印本文关闭本文返回首页

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行