标签:
各个浏览器的css hack区别属性:
IE6: _zoom:1; IE6/7: *zoom:1; IE6/7/8/9 :\9
各个浏览器的css hack区别规则
IE6: *html{} IE7: +.class{} 非IE6: html>body {} 仅火狐:@-moz-document url-prefix(){} saf3+和谷歌:@media all and (-webkit-min-device-pixel-ratio:0){} 仅opera:@media all and (-webkit-min-device-pixel-ratio:10000),not all and(-webkit-min-device-pixel-ratio:0){} iphone/mobile/webkit:@media screen and (max-device-width:480px){}
但是,我们应该尽量避免使用CSS Hack。
标签:
原文地址:http://www.cnblogs.com/jweb/p/4779843.html