Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎关于 SO 的大多数问题都希望将 3.6 与 3.5 分开,但我想在不访问 JS 或服务器端机制的情况下将 3.6 与 4.0+ 分开。
谢谢。
body:-moz-last-node #element {/* ≤ Firefox 3.6 */} :-moz-any(html) #element {/* ≥ Firefox 4 */}
第二条规则是重置基于 Gecko 的浏览器的最新版本。 但请记住,它可能会在不久的将来被:matches()取代。