如何找到正在使用的CSS版本?
How do I find the version of CSS that I am using?
推荐答案尽管CSS规范定义了多个版本(v2、2.1、3),但CSS版本与开发人员并没有真正的联系;您需要更加关注哪些网络浏览器支持给定功能.
Although the CSS specification is defined in several versions (v2, 2.1, 3), the CSS version isn't really relevant to the developer; you need to be more concerned with which web browsers support a given feature.
知道给定功能是在CSS2、2.1或3中定义的,这很有用,因为它可以使您了解该功能的年代,以及浏览器支持该功能的可能性,例如 border-radius 是CSS3的一项功能,因此使用了两年以上的浏览器可能无法完全支持它.
It is useful to know that a given feature was defined in CSS2, 2.1 or 3 because that can give you an idea of how old the feature is, and therefore how likely it is that browsers will support it -- for example border-radius is a CSS3 feature, so browsers more than a couple of years old may not support it fully.
您可以从以下站点找到哪些浏览器支持哪些CSS功能:
You can find out what CSS features are supported in which browsers from the following sites:
- www.quirksmode/css/contents.html
- caniuse/
更多推荐
如何找到CSS版本?
发布评论