zoukankan      html  css  js  c++  java
  • CSS hack

    一.hack的定义:

      各大浏览器对css的理解与支持不一样,导致在不同浏览器中呈现的效果不一致,为了统一页面效果为不同浏览器编写不同的css代码。

    二.hack的分类

      1.条件注释法

        <!--[if IE 6]> 

          只有IE6中显示或执行

        <![endif]-->

        <!--[if gte IE 6]> 

        IE6及IE6以上版本中显示或执行

        <![endif]-->

        <!--[if lt IE 7]> 

        IE7及IE7以下版本中显示或执行

        <![endif]-->

      2.属性前缀法

        “_” 只有IE6生效

        “*+><” IE6、7生效

        “” IE8生效

        “9”IE6、7、8都生效

      3.选择器前缀法

        *html 只有IE6生效

        *+html 只有IE7生效

        @media screen 只有IE8生效

  • 相关阅读:
    no.5.print sum
    0.1 hint crack
    no.4 抽奖测试
    no2.crossdomain.xml批量读取(待完善)
    no.1
    day7-读写分离
    day6-主从
    day5-备份
    day4-用户授权
    Day3-体系结构+查询+导入/出
  • 原文地址:https://www.cnblogs.com/qyhyq/p/4823292.html
Copyright © 2011-2022 走看看