zoukankan      html  css  js  c++  java
  • IE firefox hack集

    1.‘\9’:

        eg:.test { color/*\**/: blue\9 }       

    .header {300px;} /* 所有浏览器*/
    .header {width/*\**/:330px\9;} /* 所有浏览器IE浏览器 */
    .header {*310px;} /* IE7和IE6能识别,IE8和FF不能识别*/
    .header {_290px;} /* IE6能识别,IE7、IE8和FF不能识别*/

    2.利用条件注释语句:<!–[if IE]> 此内容只有IE可见 <![endif]–>         

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

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

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

    3.其它hack 技术:

    .color1{ color:#F00; color/*\**/:#00F /*\**/}/*IE6,IE7,IE8,FF,OP,SA识别*/
    .color2{ color:#F00; color /*\**/:#00F /*\9**/}/*IE7,IE8,FF,OP,SA识别*/
    .color3{ color:#F00; color/*\**/:#00F \9}/*IE6,IE7,IE8识别*/
    .color4{ color:#F00; color /*\**/:#00F\9}/*IE7,IE8识别*//*“color”和“/*\**/”之间有个空格*/
    #test{
    color:red; /* 所有浏览器都支持 */
    color:red !important;/* Firefox、IE7支持 */
    _color:red; /* IE6支持 */
    *color:red; /* IE6、IE7支持 */
    *+color:red; /* IE7支持 */
    color:red\9; /* IE6、IE7、IE8支持 */
    color:red\0; /* IE8支持 */
    }
    body:nth-of-type(1) p{color:red;} /* Chrome、Safari支持 */
  • 相关阅读:
    ES学习(十)
    ES学习(九)
    ES学习(八)
    ES学习(七)--documentAPI
    ES学习(六)--shard和replica机制
    ES学习(四)--嵌套聚合、下钻分析、聚合分析
    uniapp中常见的请求方法封装 --来之插件市场(全局方法封装(请求/正则/URI)
    工具/插件
    express中文件的上传 multer
    express中开发常用
  • 原文地址:https://www.cnblogs.com/see7di/p/2239846.html
Copyright © 2011-2022 走看看