码迷,mamicode.com
首页 > 其他好文 > 详细

hack

时间:2015-07-13 18:07:41      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:

all IE:

Selector{property:value\9;}

IE7:

*+html Selector{property:value;}

*:first-child+html Selector {property:value;}

Selector {*property:value;}

Selector {+property:value;}

IE7,IE7-:

*body Selector {+property:value;}

 

IE8:

@media \0screen {Selector{property:value;}}

 

IE8+:

 Selector {property: value\0;}

 

IE8/9/10:

 Selector {property: value\9\0;}

IE10:

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  Selector {property: value;} /* for IE10+ 此写法可以适配到高对比度和默认模式,故可覆盖所有ie10的模式 */
}

IE9、10、火狐、谷歌:

:root Selector {property: value;}

 

Firefox火狐(支持所有Gecko内核的浏览器,包括火狐):

@-moz-document url-prefix() { Selector { property: value; } }

谷歌:

@media screen and (-webkit-min-device-pixel-ratio: 0) { Selector { property: value; } }

 

hack

标签:

原文地址:http://www.cnblogs.com/BaishangBloom/p/4643149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!