原文
《CSS Hacks Targeting Firefox》 http://css-tricks.com/snippets/css/css-hacks-targeting-firefox/ 来自css-tricks.com
译文
Firefox 2
html>/**/body .selector, x:-moz-any-link {
color:lime;
}
Firefox 3
html>/**/body .selector, x:-moz-any-link, x:default {
color:lime;
}
所有版本的 Firefox
@-moz-document url-prefix() {
.selector {
color:lime;
}
}
后记
随着浏览器的发展,Firefox 并不是没有兼容性问题。虽然它因为速度慢和竞争不过 Chrome 的原因,用户越来越少。但是对于追求完美的前端而言,偶尔还需要用到它的 hack。原文来自 css-tricks.com ,总共没几个字,但不是所有中文用户都能一眼定位到它。希望换了中文标题后这篇文章能够有所帮助。