通过这段html可以让你对特定的ie版本添加内容,只在特定版本ie展现,可以是javascript、css、html。
1 | <!--[if IE]> |
2 | 这样使用IE浏览器(全部版本)的人都看得到。 |
3 | <![endif]--> |
1 | <!--[if IE 6]> |
2 | 这样IE 6.0版本会看得到,只限IE 6.0版本。 |
3 | <![endif]--> |
1 | <!--[if lt IE 6]> |
2 | 这样IE 6.0以下版本会看得到,不包含6.0。 |
3 | <![endif]--> |
1 | <!--[if lte IE 6]> |
2 | 这样IE 6.0以下版本会看得到,包含6.0。 |
3 | <![endif]--> |
1 | <!--[if lte IE 8]> |
2 | 这样IE 8.0以下版本会看得到,包含8.0。 |
3 | <![endif]--> |
1 | <!--[if gt IE 5]> |
2 | 这样IE 5.0以上版本会看得到,不包含5.0 |
3 | <![endif]--> |
1 | <!--[if gte IE 5]> |
2 | 这样IE 5.0以上版本会看得到,包含5.0 |
3 | <![endif]--> |
代码说明:
- gt:greater than (版本号大于)
- lt:less than (版本号小于)
- gte:greater than or equal to (版本号大于等于)
- lte:less than or equal to (版本号小于等于)
嘻嘻。看看你的浏览器需要升级不!查询浏览器是否需要升级
下载谷歌浏览器chrome:http://www.google.com/chrome/