开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜