您的位置:首页
IE条件注释判断
2018-01-08 18:09
447 查看
相信大家都知道IE有专门的注释条件判断来引入一些css、js、html代码,但是语法有点拗口,记不住,下面我来做一下笔记:
非IE的写法比较特殊:
IE判断的写法只兼容到IE9,到IE10已经是只显示非IE注释的内容了,所以我们现在习惯叫的IE浏览器其实多是指IE9及以下
正常的html注释: <!--注释注释注释注释...--> 注释条件判断 IE7: <!--[if IE 7]> 引入的任何css、js、html <![endif]--> IE7及以上: <!--[if gte IE 7]> 引入的任何css、js、html <![endif]--> IE7及以下: <!--[if lte IE 7]> 引入的任何css、js、html <![endif]--> IE7以上(不含IE7): <!--[if gt IE 7]> 引入的任何css、js、html <![endif]--> IE7以下(不含IE7): <!--[if lt IE 7]> 引入的任何css、js、html <![endif]--> IE7或IE8: <!--[if IE 7|IE 8]> 引入的任何css、js、html <![endif]--> 非IE7或IE8: <!--[if lt IE 7|gt IE 8]> 引入的任何css、js、html <![endif]--> 或者 <!--[if !(IE 7|IE 8)]> 引入的任何css、js、html <![endif]-->
非IE的写法比较特殊:
<!--[if !IE]>--> 任何css、js、html <!--<![endif]-->
IE判断的写法只兼容到IE9,到IE10已经是只显示非IE注释的内容了,所以我们现在习惯叫的IE浏览器其实多是指IE9及以下
相关文章推荐
- HTML中IE条件注释判断语句(<!--[if XX IE X]><![endif]-->)
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- <!--[if IE9]><![endif]--> IE 9 以下浏览器css,js过滤器【条件注释判断浏览器】
- 条件注释判断浏览器版本<!--[if lt IE 9]>(转载)
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 通过HTML条件注释判断IE版本的HTML语句详解<!--[if IE]> <![endif]-->
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器版本<!--[if lt IE 9]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断ie版本
- 条件注释判断浏览器<[if IE]>
- HTML条件注释判断IE<!--[if IE]><!--[if lt IE 9]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- IE的条件注释判断浏览器类别
- Internet ExplorerInternet Explorer 的问题:HTMl5条件注释判断浏览器版本<!--[if lt IE 9]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lte IE 6]><!--[if gte IE 6]>