常见的浏览器Hack技巧总结

Firefox 与 Chrome 的 Hack

Firefox:@-moz-document url-prefix()    /*写在选择器外层时(只可写在此处):Firefox only*/

Chrome:@media screen and (-webkit-min-device-pixel-ratio:0)    /*写在选择器外层时(只可写在此处):Chrome only*/

使用示例:

@-moz-document url-prefix()    /*Firefox*/

{

  div { background:red;}

}

(总结一下css hack,方便以后查阅)

posted @ 2014-08-13 18:43  raimonfuns  阅读(120)  评论(0编辑  收藏  举报
raimonfuns的技术博客,JavaScript,css,html