is there a way of targeting Firefox 3.6 and below using CSS?
I want to separately 开发者_C百科target Firefox 3.6 and below via CSS selectors without access to JS or server-side mechanisms. Is there a way to do that?
body:-moz-last-node #element {/* ≤ Firefox 3.6 */}
:-moz-any(html) #element {/* ≥ Firefox 4 */}
The second rule is there to reset recent versions of Gecko-based browsers.
But remember that it will probably be dropped in favour of :matches() in the near future.
精彩评论