导航首页 »  技术教程 »  创建IE各版本专属CSS IE中的if语句
创建IE各版本专属CSS IE中的if语句 803 2024-10-21   

http://5key.net/blog/article.asp?id=309
IE下专属CSS:

<![if !IE]>
<link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1404/NOT-IE.css" />
<![endif]>


IE 6 ONLY:

<[if IE 6]>
<link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1404/IE-6-SPECIFIC.css" />
<![endif]-->


IE 5 ONLY:

<[if IE 5]>
<link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1404/IE-5-SPECIFIC.css" />
<![endif]-->

IE 5.5 ONLY:

<[if IE 5.5000]>
<link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1404/IE-55-SPECIFIC.css" />
<![endif]-->


IE6或更低:

<[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1404/IE-6-OR-LOWER-SPECIFIC.css" />
<![endif]-->


非IE:

<![if !IE]>
<link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1404/REAL-STYLESHET.css" />
<![endif]>


文章评论 (0条)
发表评论
暂无评论,快来抢沙发吧~