ie里面条件注释都是怎么写的

2011-08-07 20:42:13

0

最新答案:1

英文扫盲:

lt :就是Less than的简写,也就是小于的意思。
lte :就是Less than or equal to的简写,也就是小于或等于的意思。
gt :就是Greater than的简写,也就是大于的意思。
gte:就是Greater than or equal to的简写,也就是大于或等于的意思。
!:就是不等于的意思,跟javascript里的不等于判断符相同。


只有IE才能识别
<!--[if IE]>
code
<![endif]-->

只有特定版本才能识别
<!--[if IE 8]>
code
<![endif]-->

只有不是特定版本的才能识别
<!--[if !IE 7]>
code
<![endif]-->

只有高于特定版本才能识别
<!--[if gt IE 7]>
code
<![endif]-->

等于或者高于特定版本才能识别
<!--[if gte IE 7]>
code
<![endif]-->

只有低于特定版本的才能识别
<!--[if lt IE 7]>
code
<![endif]-->

等于或者低于特定版本的才能识别
<!--[if lte IE 7]>
code
<![endif]-->

2011-08-07 20:47:37 tjubao@163.com

0
没有您想要的答案吗? 浏览其他问题 问你自己的问题

赞助