The syntax I use is:
1 <!--[if IE]>
2 According to the conditional comment this is Internet Explorer<br />
3 <![endif]-->
4 <!--[if IE 5]>
5 According to the conditional comment this is Internet Explorer 5<br />
6 <![endif]-->
7 <!--[if IE 5.0]>
8 According to the conditional comment this is Internet Explorer 5.0<br />
9 <![endif]-->
10 <!--[if IE 5.5]>
11 According to the conditional comment this is Internet Explorer 5.5<br />
12 <![endif]-->
13 <!--[if IE 6]>
14 According to the conditional comment this is Internet Explorer 6<br />
15 <![endif]-->
16 <!--[if IE 7]>
17 According to the conditional comment this is Internet Explorer 7<br />
18 <![endif]-->
19 <!--[if gte IE 5]>
20 According to the conditional comment this is Internet Explorer 5 and up<br />
21 <![endif]-->
22 <!--[if lt IE 6]>
23 According to the conditional comment this is Internet Explorer lower than 6<br />
24 <![endif]-->
25 <!--[if lte IE 5.5]>
26 According to the conditional comment this is Internet Explorer lower or equal to 5.5<br />
27 <![endif]-->
28 <!--[if gt IE 6]>
29 According to the conditional comment this is Internet Explorer greater than 6<br />
30 <![endif]-->
2 According to the conditional comment this is Internet Explorer<br />
3 <![endif]-->
4 <!--[if IE 5]>
5 According to the conditional comment this is Internet Explorer 5<br />
6 <![endif]-->
7 <!--[if IE 5.0]>
8 According to the conditional comment this is Internet Explorer 5.0<br />
9 <![endif]-->
10 <!--[if IE 5.5]>
11 According to the conditional comment this is Internet Explorer 5.5<br />
12 <![endif]-->
13 <!--[if IE 6]>
14 According to the conditional comment this is Internet Explorer 6<br />
15 <![endif]-->
16 <!--[if IE 7]>
17 According to the conditional comment this is Internet Explorer 7<br />
18 <![endif]-->
19 <!--[if gte IE 5]>
20 According to the conditional comment this is Internet Explorer 5 and up<br />
21 <![endif]-->
22 <!--[if lt IE 6]>
23 According to the conditional comment this is Internet Explorer lower than 6<br />
24 <![endif]-->
25 <!--[if lte IE 5.5]>
26 According to the conditional comment this is Internet Explorer lower or equal to 5.5<br />
27 <![endif]-->
28 <!--[if gt IE 6]>
29 According to the conditional comment this is Internet Explorer greater than 6<br />
30 <![endif]-->
Note the special syntax:
gt
: greater thanlte
: less than or equal to
专注前端开发,分享&交流技术经验 by 付诸行动
Copyright © 2009-2010 分享前端开发技术博文、工作心得,技术交流
Gtalk: agikoo@gmail.com QQ交流群: 101232616
http://uecode.com/
Copyright © 2009-2010 分享前端开发技术博文、工作心得,技术交流
Gtalk: agikoo@gmail.com QQ交流群: 101232616
http://uecode.com/