CSS 基本数据类型是 组件值类型 component value type 的一种。用于定义 CSS属性和函数可以接受的变量(关键字和单位)的种类。
数据类型由放置在不等式符号 "<" 和 ">" 之间的关键字表示:
Reference
<angle>
<basic-shape>
<blend-mode>
<color>
<custom-ident>
<filter-function>
<flex>
<frequency>
<gradient>
<image>
<integer>
<length>
<number>
<percentage>
<position>
<ratio>
<resolution>
<shape-box>
<single-transition-timing-function>
<string>
<time>
<transform-function>
<url>
Specifications
Specification | Status | Comment |
---|---|---|
CSS Values and Units Module Level 3 | Candidate Recommendation | Initial definition. |