创建IE各版本专属CSS IE中的if语句
http://5key.net/blog/article.asp?id=309
IE下专属CSS:
IE 6 ONLY:
IE 5 ONLY:
IE 5.5 ONLY:
IE6或更低:
非IE:
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]>
相关推荐
qiupu 2020-11-04
多读书读好书 2020-11-03
RedCode 2020-10-28
jiedinghui 2020-10-25
Ladyseven 2020-10-22
hellowzm 2020-10-12
zuncle 2020-09-28
Ladyseven 2020-09-11
jiedinghui 2020-09-07
xiaohuli 2020-09-02
葉無聞 2020-09-01
impress 2020-08-26
ThikHome 2020-08-24
nicepainkiller 2020-08-20
hellowzm 2020-08-18