創(chuàng)建IE各版本專屬CSS IE中的if語句
更新時(shí)間: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:
復(fù)制代碼 代碼如下:
<![if !IE]>
<link rel="stylesheet" type="text/css" href="NOT-IE.css" />
<![endif]>
IE 6 ONLY:
復(fù)制代碼 代碼如下:
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="IE-6-SPECIFIC.css" />
<![endif]-->
IE 5 ONLY:
復(fù)制代碼 代碼如下:
<!--[if IE 5]>
<link rel="stylesheet" type="text/css" href="IE-5-SPECIFIC.css" />
<![endif]-->
IE 5.5 ONLY:
復(fù)制代碼 代碼如下:
<!--[if IE 5.5000]>
<link rel="stylesheet" type="text/css" href="IE-55-SPECIFIC.css" />
<![endif]-->
IE6或更低:
復(fù)制代碼 代碼如下:
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="IE-6-OR-LOWER-SPECIFIC.css" />
<![endif]-->
非IE:
復(fù)制代碼 代碼如下:
<![if !IE]>
<link rel="stylesheet" type="text/css" href="REAL-STYLESHET.css" />
<![endif]>
相關(guān)文章
html中CSS:hover選擇器改變子元素、同級(jí)元素、就近元素的樣式
鼠標(biāo)懸浮覆蓋元素后,以前使用js的mouseover和mouseout添加監(jiān)聽事件可以實(shí)現(xiàn)交互,現(xiàn)在可以使用CSS中的:hover選擇器提高性能,:hover選擇器可以針對(duì)不同的HTML元素,在鼠標(biāo)懸停時(shí)改變?cè)兀ㄒ部梢允亲釉?、同?jí)元素、就近元素)的樣式,增強(qiáng)網(wǎng)頁的互動(dòng)性和用戶體驗(yàn),2023-08-08《CSS3實(shí)戰(zhàn)》筆記--漸變?cè)O(shè)計(jì)(三)
這篇文章主要介紹了《CSS3實(shí)戰(zhàn)》筆記--漸變?cè)O(shè)計(jì)(三,需要的朋友可以參考下2016-05-05用<TABLE>語句來實(shí)現(xiàn)圓角表格可以省去制作圓角圖片之苦!
用<TABLE>語句來實(shí)現(xiàn)圓角表格可以省去制作圓角圖片之苦!...2007-04-04-
最新評(píng)論