zoukankan      html  css  js  c++  java
  • IE浏览器hack方法总结之条件注释判断

    常用hack方法总结

    标签(空格分隔): web前端


    条件注释判断

    1. 条件注释简介
    • 条件注释只有IE能识别
    • 条件注释只能用于IE5以上
    • 如果安装了多个IE,条件注释将会以最高版本的IE为标准
    • IE根据if条件判断注释解析方式
    1. 条件注释属性
    • gt:greater than 选择条件版本以上版本,不包含条件版本
    • lt:less than 选择条件版本一下版本,不包含条件版本
    • gte:greater than or equal 选择条件版本以上版本,包含条件版本
    • lte:less than or equal 选择条件版本一下版本,包含条件版本
    • !: 选择条件版本以外所有版本,无论高低
    1. 条件注释写法
    • <!-- [if IE]>用于IE<![endif]-->
    • <!-- [if IE 6]>用于IE6<![endif]-->
    • <!-- [if IE 7]>用于IE7<![endif]-->
    • <!-- [if IE 8]>用于IE8<![endif]-->
    • <!-- [if IE 9]>用于IE9<![endif]-->
    • <!-- [if gt IE 6]>用于IE6以上版本<![endif]-->
    • <!-- [if lte IE 7]>用于IE7或更低版本<![endif]-->
    • <!-- [if gte IE 8]>用于IE8及以上版本<![endif]-->
    • <!-- [if lt IE 9]>用于IE9以下版本<![endif]-->
    • <!-- [if !IE]>-->用于非IE<!--<![endif]-->
  • 相关阅读:
    POJ 2892 Tunnel Warfare(树状数组+二分)
    POJ 2886 Who Gets the Most Candies?(树状数组+二分)
    POJ 2492 A Bug's Life(并查集)
    POJ 1182 食物链(并查集)
    POJ 1703 Find them, Catch them(种类并查集)
    TC SRM 582 DIV 2
    函数
    shell进阶--流程
    计划任务 at,cron
    kill命令
  • 原文地址:https://www.cnblogs.com/zhahouming/p/5228834.html
Copyright © 2011-2022 走看看