翻译不完整。 请帮助我们翻译这篇文章!

CSS数据类型<time-percentage> 的值可以表示为时间或百分比。



Use in calc()

如果将<time percentage>指定为允许的类型,这意味着该百分比解析为时间,因此可以在calc()表达式中使用。


Specification Status Comment
CSS Values and Units Module Level 4
Editor's Draft  
CSS Values and Units Module Level 3
Candidate Recommendation Defines <time-percentage>. Adds calc()

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
<time-percentage>Chrome Full support 1Edge Full support 12Firefox Full support 4IE Full support 9Opera Full support 10.1Safari Full support 3.1WebView Android Full support 2Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 10.1Safari iOS Full support 2Samsung Internet Android Full support 1.0


Full support  
Full support