我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

The <time-percentage> CSS data type represents a value that can be either a <time> or a <percentage>.

Syntax

Refer to the documentation for <time> and <percentage> for details of the individual syntaxes allowed by this type.

Use in calc()

Where a <time-percentage> is specified as an allowable type, this means that the percentage resolves to a time and therefore can be used in a calc() expression.

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
<time-percentage>Chrome Full support YesEdge ? Firefox Full support 4IE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android ? Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

文档标签和贡献者

此页面的贡献者: mdnwebdocs-bot, mfuji09, chrisdavidmills, rachelandrew
最后编辑者: mdnwebdocs-bot,