zoukankan      html  css  js  c++  java
  • 判断各版本IE的HTML和CSS语句

    <!--[if lte IE 6]>......<![endif]--> IE6及其以下版本可见
    <!--[if lte IE 7]>......<![endif]--> IE7及其以下版本可见
    <!--[if IE 6]>......<![endif]--> 只有IE6版本可见
    <!--[if !IE]>......<![endif]--> 非IE版本可见
    <!--[if it IE 8]......<![endif]--> IE8以下版本可见
    <!--[if gte IE 7]>......<![endif]--> IE7及其以上版本可见
    CSS部分

    .all IE{property:value\9;}
    .gte IE 8{property:value\0;}
    .lte IE 7{*property:value;}
    .IE 8/9{property:value\0;}
    .IE 9{property:value\9\0;}
    .IE 7{+property:value;}
    .IE 6{_property:value;}
    .not IE{property//:value;}
    lte:就是Less than or equal to的简写,也就是小于或等于的意思。
    lt :就是Less than的简写,也就是小于的意思。
    gte:就是Greater than or equal to的简写,也就是大于或等于的意思。
    gt :就是Greater than的简写,也就是大于的意思。
    ! :就是不等于的意思,跟javascript里的不等于判断符相同

  • 相关阅读:
    理性与感性
    JVM系列(之class文件)
    Java集合框架
    Java字符串连接的几种方式
    JVM系列(之ClassLoader)
    时之终结
    约束中的存在
    拿什么爱你?我的数学
    梦的表征、抽象的思维
    Spider with R
  • 原文地址:https://www.cnblogs.com/lyweb/p/2947962.html
Copyright © 2011-2022 走看看