zoukankan      html  css  js  c++  java
  • CSS浏览器兼容性相关

    浏览器兼容性

    .all IE{property:value9;}
    .gte IE 8{property:value;}  .IE 8/9{property:value;}
    .lte IE 7{*property:value;}
    .IE 9{property:value9;}    /*仅IE9支持*/
    .IE 7{+property:value;}
    .IE 6{_property:value;}
    .not IE{property//:value;}

    text-indent在IE6/IE7中的位置偏移BUG

    text-indent一般用来实现文字缩进,不过更多的时候是用来实现文字隐藏。发现在IE6/IE7中,text-indent会导致inline- block元素出现向左(text-indent的值为负时)或向右(text-indent值为正时)的偏移。
    inline-block元素设置text-indent在IE6/IE7中不正常,在IE8中正常。造成这种情况的原因应该是IE6/IE7并没有真正实现inline-block, 而是通过设置display:inline-block触发了IE的layout, 从而使内联元素拥有了inline-block属性的表症。
    解决方法:

    .element {display:inline-block; *display:block;} 

  • 相关阅读:
    进程池和线程池
    TCP并发、GIL、锁
    进程间通信
    装饰器与反射
    装饰器大全
    面向对象三大特征: 封装 继承 多态
    面向对象 魔术方法
    魔术方法
    ubuntu 中导 tarfile,win 不亲切
    os VS shutil
  • 原文地址:https://www.cnblogs.com/everyone/p/3380580.html
Copyright © 2011-2022 走看看