跳到内容

其他特征

其他 CSS 特征。

Variables

Comments9
Compare Data
印象模糊
有听说过
用过
我们请了 CSS 社区的成员来分享他们的 "年度精选"。

我的 2022 精选是: :has() 选择器

CSS 在跨组件协调 UI 交互方面变得更强大。我们几乎没有涉及 :has() 对样式的影响。
我们请了 CSS 社区的成员来分享他们的 "年度精选"。

Adam Argyle

Google 的 UI/CSS 开发者关系工程师

@supports

Comments4
Compare Data
印象模糊
有听说过
用过

will-change

Comments16
Compare Data
印象模糊
有听说过
用过

CSS Comparison Functions

Comments17
Compare Data
印象模糊
有听说过
用过

@property

Comments15
Compare Data
印象模糊
有听说过
用过

Cascade Layers

Comments14
Compare Data
印象模糊
有听说过
用过

Shadow DOM Features

Comments9
Compare Data
印象模糊
有听说过
用过

Trigonometric Functions

Comments17
Compare Data
印象模糊
有听说过
用过

CSS Nesting

Comments60
Compare Data
印象模糊
有听说过
用过

image-set()

Comments12
Compare Data
印象模糊
有听说过
用过

image()

Comments6
Compare Data
印象模糊
有听说过
用过
Dynamic CSS with Custom Properties (aka CSS Variables)
Lea Verou
MIT

Dynamic CSS with Custom Properties (aka CSS Variables)

Modern browsers ship with CSS Custom Properties, also known as “CSS variables”, a superpower that enables us to create reusable components without any JavaScript dependencies needed
感谢合作伙伴对我们的支持! 了解更多。