判断浏览器
2016-05-16 14:58
239 查看
<!--[if IE]> <script type="text/javascript"> alert("ie") </script> < ![endif]--> <!--[if IE 6]> <script type="text/javascript"> alert("ie6") </script> < ![endif]--> <!--[if IE 7]> <script type="text/javascript"> alert("ie7") </script> < ![endif]-->
解释:
<!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--> <!--[if IE]> 所有的IE可识别 <![endif]--> <!--[if IE 6]> 仅IE6可识别 <![endif]--> <!--[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]--> <!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]--> <!--[if IE 7]> 仅IE7可识别 <![endif]--> <!--[if lt IE 7]> IE7以及IE7以下版本可识别 <![endif]--> <!--[if gte IE 7]> IE7以及IE7以上版本可识别 <![endif]--> <!--[if IE 8]> 仅IE8可识别 <![endif]--> <!--[if IE 9]> 仅IE9可识别 <![endif]-->
相关文章推荐
- spring构造方法注入
- 常用的功能
- html简易计算器的前端代码
- URL地址下载图片到本地
- Leetcode 101 Symmetric Tree
- YII2.0 Activeform表单组件的使用方法
- JVM 几个重要的参数
- 基于LibYaml函数库的twemproxy配置文件解析和修改
- 应用系统常用性能指标
- Remove Duplicates from Sorted Array
- 水题 实现分数加的模板
- IOS UITableView 改变编辑模式下的移动图标
- 设计模式之策略模式(C++实现)
- PL SQL Developer中文乱码
- Entity Framework 6 Recipes 2nd Edition(13-8)译 -> 把昂贵的属性移到其它实体
- VMware虚拟机-无法连接网络
- Android Studio快捷键总结(Mac)
- blender手册快捷键和操作技巧三
- 《Windows API》创建窗口
- C语言笔记(七)