CSS data types define typical values (including keywords and units) accepted by CSS properties and functions. They are a special kind of component value type .
In formal CSS syntax, data types are denoted by a keyword placed between the inequality signs "
<
" and "
>
".
The data types defined by the set of CSS specifications include the following:
<calc-product>
<calc-sum>
<calc-value>
<color>
<color-stop>
<color-stop-angle>
<counter-style>
<custom-ident>
| 规范 | 状态 | 注释 |
|---|---|---|
| CSS Values and Units Module Level 4 | 编者草案 | |
| CSS Values and Units Module Level 3 | 候选推荐 | 初始定义。 |
<angle-percentage>
<angle>
<basic-shape>
<blend-mode>
<custom-ident>
<dimension>
<frequency-percentage>
<frequency>
<gradient>
<image>
<integer>
<length-percentage>
<length>
<number>
<percentage>
<ratio>
<resolution>
<shape>
<string>
<time-percentage>
<time>
<transform-function>
<url>
color
flex
ident
position