开发者

is there a way of targeting Firefox 3.6 and below using CSS?

开发者 https://www.devze.com 2023-04-11 02:05 出处:网络
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.

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

精彩评论

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

关注公众号