zoukankan      html  css  js  c++  java
  • IE hack中主要的几个

    _: IE6;

    #*+.: IE6 IE7;

    black: IE8;

    black9: IE所有;

    @media screen9 { … }: IE6 IE7;

    @media screen,screen9 { … }: IE6 IE7 IE8;

    @media screen { … }: IE8;

    @media screen { … }: IE8 IE9;

    @media screen and (min-0) { … }: IE9;

    * html #div1: IE6;

    html* #div1: IE6 IE7;

    *+html #div1: IE7;

    html:root #div1: IE9;

    :root #div1 {background-color: red9;}:IE9;

    :root #div1 {background-color: red;}:IE9 IE10;

    IE6不识别!important;

    区分IE6与IE7:
    1. *background:green !important;*background:blue; 

    2.*background:green; _background:blue; 

    <!--[if IE]>IE<![endif]-->
    <!--[if IE 9]>IE9<![endif]-->
    <!--[if IE 8]>IE8<![endif]-->
    <!--[if IE 7]>IE7<![endif]-->
    <!--[if IE 6]>IE6<![endif]-->

    <!--[if !IE]> 除IE外都可识别的代码片断<![endif]-->

    <!--[if IE]> 所有的IE可识别的代码片断 <![endif]-->
    <!--[if IE 7]>
    仅IE7可识别的代码片断 <![endif]-->
    <!--[if lt IE 7]> IE7
    以及IE7以下版本可识别的代码片断<![endif]-->
    <!--[if gte IE 7]> IE7
    以及IE7以上版本可识别的代码片断 <![endif]-->

    lt 表示less than 当前条件版本以下的版本,不包含当前版本。

    gte 表示greeter than or equal 当前版本以上版本,并包含当前版本。

    lte 表示less than or equal 当前版本以下版本,并包含当前版本。

    相关链接:http://blog.ryanwu.me/IE-Hacks/

  • 相关阅读:
    js小数点失精算法修正
    ActiveX控件之ActiveXObject is not defined
    js通过日期计算属于星期几
    标准日期格式化
    js阿拉伯数字转中文大写
    RPC 原理的前生今世
    大型网站架构系列:20本技术书籍推荐
    Zookeeper核心机制
    建造者模式
    模板方法模式
  • 原文地址:https://www.cnblogs.com/pcd12321/p/5224700.html
Copyright © 2011-2022 走看看