<angle-percentage>

 
 

CSS数据类型 <angle-percentage> 代表了一种既可以是 angle ,也可以是percentage的数据类型

 

语法

有关此类型的详细文档,请参阅 angle 和 percentage 

在calc()中使用这个类型

当 <angle-percentage> 被正确定义后,它就代表了一个可以被 calc() 表达式解析的角度 

规范

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

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
<angle-percentage>Chrome Full support 2Edge Full support 12Firefox Full support 3.6IE Full support 9Opera Full support 15Safari Full support 4WebView Android Full support 2Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 14Safari iOS Full support 3.2Samsung Internet Android Full support 1.0
degChrome Full support 2Edge Full support 12Firefox Full support 3.6IE Full support 9Opera Full support 15Safari Full support 4WebView Android Full support 2Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 14Safari iOS Full support 3.2Samsung Internet Android Full support 1.0
gradChrome Full support 2Edge Full support 12Firefox Full support 3.6IE Full support 9Opera Full support 15Safari Full support 4WebView Android Full support 2Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 14Safari iOS Full support 3.2Samsung Internet Android Full support 1.0
radChrome Full support 2Edge Full support 12Firefox Full support 3.6IE Full support 9Opera Full support 15Safari Full support 4WebView Android Full support 2Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 14Safari iOS Full support 3.2Samsung Internet Android Full support 1.0
turnChrome Full support 2Edge Full support 12Firefox Full support 3.6IE Full support 9Opera Full support 15Safari Full support 4WebView Android Full support 2Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 14Safari iOS Full support 3.2Samsung Internet Android Full support 1.0

Legend

Full support  
Full support