IE hack

.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;}
/*  webkit css hack  */
    .webkit-hack{
        color:green;
    }
    @media screen and (-webkit-min-device-pixel-ratio:0) { 
     .webkit-hack { 
       color:red;
     } 
  }
  /* firefox css hack */
  .firefox-hack{
    color:green;
  }
  @-moz-document url-prefix(){
    .firefox-hack{
        color:red;
    }
  }
  /* IE8/9/10/11 css hack */
  .IE-hack{
    color:green;
  }
  @media screen\0 {
     .IE-hack{
        color:red;
      }
  }
  /* IE6/7/8 css hack */
  .IE678-hack{
      color:green;  
   }
   @media \0screen\,screen\9 {
    .IE678-hack{
        color:red;
    }
   }
  /*

 

 http://www.imooc.com/article/5247

posted @ 2016-05-05 16:53  对方屌丝正在输入中  阅读(156)  评论(0编辑  收藏  举报