<angle-percentage>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.

<angle-percentage> CSS 数据类型表示 <angle><percentage> 的其中一个值。

当指定允许的类型为 <angle-percentage> 时,这意味着百分比值会解析为一个角度,因此可以在 calc() 表达式中使用。

语法

请参阅 <angle><percentage> 的文档,了解该类型允许使用的语法的详细信息。

形式语法

<angle-percentage> = 
<angle> |
<percentage>

规范

Specification
CSS Values and Units Module Level 4
# mixed-percentages

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
<angle-percentage>

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

参见