<time-percentage>
CSS数据类型<time-percentage> 的值
可以表示为时间或百分比。
Syntax
有关此类型允许的各个语法的详细信息,请参阅time
和percentage
的文档。
Use in calc()
如果将<time percentage>
指定为允许的类型,这意味着该百分比解析为时间,因此可以在calc()()
表达式中使用。
Specifications
Specification | Status | Comment |
---|---|---|
CSS Values and Units Module Level 4 <time-percentage> |
Editor's Draft | |
CSS Values and Units Module Level 3 <time-percentage> |
Candidate Recommendation | Defines <time-percentage> . Adds calc() |
Browser compatibility
BCD tables only load in the browser