javascript 判断 navigator.userAgent.indexOf(“iPhone”)
HTML 判断 IE 类型
1. <!–[if !IE]><!–> 除 IE 外都可识别 <!–<![endif]–>
2. <!–[if IE]> 所有的 IE 可识别 <![endif]–>
3. <!–[if IE 5.0]> 只有 IE5.0 可以识别 <![endif]–>
4. <!–[if IE 5]> 仅 IE5.0 与 IE5.5 可以识别 <![endif]–>
5. <!–[if gt IE 5.0]> IE5.0 以及 IE5.0 以上版本都可以识别 <![endif]–>
6. <!–[if IE 6]> 仅 IE6 可识别 <![endif]–>
7. <!–[if lt IE 6]> IE6 以及 IE6 以下版本可识别 <![endif]–>
8. <!–[if gte IE 6]> IE6 以及 IE6 以上版本可识别 <![endif]–>
9. <!–[if IE 7]> 仅 IE7 可识别 <![endif]–>
10. <!–[if lt IE 7]> IE7 以及 IE7 以下版本可识别 <![endif]–>
11. <!–[if gte IE 7]> IE7 以及 IE7 以上版本可识别 <![endif]–>
正文完
发表至: 建站源码
2015-02-09