<length-percentage>
The <length-percentage>
CSS data type represents a value that can be either a length
or a percentage
.
The <length-percentage>
CSS 数据类型表示一个值,该值可以是<length>或<percentage>。
Syntax
Refer to the documentation for length
and percentage
for details of the individual syntaxes allowed by this type.
Use in calc()
Specifications
Specification | Status | Comment |
---|---|---|
CSS Values and Units Module Level 4 <length-percentage> |
Editor's Draft | |
CSS Values and Units Module Level 3 <length-percentage> |
Candidate Recommendation | Defines <length-percentage> . Adds calc() |
Browser compatibility
BCD tables only load in the browser