判断各版本IE的HTML和CSS语句
七月 5, 2011
4 comments
HTML部分
<!--[if lte IE 6]>......<![endif]--> IE6及其以下版本可见 <!--[if lte IE 7]>......<![endif]--> IE7及其以下版本可见 <!--[if IE 6]>......<![endif]--> 只有IE6版本可见 <!--[if !IE]>......<![endif]--> 非IE版本可见 <!--[if it IE 8]......<![endif]--> IE8以下版本可见 <!--[if gte IE 7]>......<![endif]--> IE7及其以上版本可见
CSS部分
.all IE{property:value\9;}
.gte IE 8{property:value\0;}
.lte IE 7{*property:value;}
.IE 8/9{property:value\0;}
.IE 9{property:value\9\0;}
.IE 7{+property:value;}
.IE 6{_property:value;}
.not IE{property//:value;}
lte:就是Less than or equal to的简写,也就是小于或等于的意思。
lt :就是Less than的简写,也就是小于的意思。
gte:就是Greater than or equal to的简写,也就是大于或等于的意思。
gt :就是Greater than的简写,也就是大于的意思。
! :就是不等于的意思,跟javascript里的不等于判断符相同
博主用的啥主机?服务器在新加坡啊
[回复]
Jayuh
回复:
七月 6th, 2011 at 08:38
GoDaddy主机,自动分配到新加坡的。
[回复]
沙发!以前看过类似的文章,赞一个!
[回复]
牛 第一次见
[回复]