IE hack

.all IE{property:value9;}
.gte IE 8{property:value;}
.lte IE 7{*property:value;}
.IE 8/9{property:value;}
.IE 9{property:value9;}
.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 {
     .IE-hack{
        color:red;
      }
  }
  /* IE6/7/8 css hack */
  .IE678-hack{
      color:green;  
   }
   @media screen\,screen9 {
    .IE678-hack{
        color:red;
    }
   }
  /*

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

原文地址:https://www.cnblogs.com/hellman/p/5462507.html