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/

  • 相关阅读:
    第五次团队作业
    第三次个人作业
    第一次编程作业
    自我介绍
    个人总结
    第三次个人作业
    第一次结对作业
    第二次作业
    第一次博客作业
    Alpha总结
  • 原文地址:https://www.cnblogs.com/pcd12321/p/5224700.html
Copyright © 2011-2022 走看看