corner-bottom-shape
corner-bottom-shape CSS 属性指定了框底部边缘两个角的形状,在其 border-radius 区域内。
有关角形状行为的完整描述和多个示例,请参见 corner-shape 简写属性页面。
构成属性
corner-bottom-shape 属性是以下物理属性的简写
语法
css
/* Single keyword value set for both corners */
corner-bottom-shape: scoop;
corner-bottom-shape: square;
/* Single superellipse() value set for both corners */
corner-bottom-shape: superellipse(0.7);
corner-bottom-shape: superellipse(-2.8);
/* Left-hand corner, right-hand corner */
corner-bottom-shape: scoop square;
corner-bottom-shape: scoop superellipse(0.7);
/* Global values */
corner-bottom-shape: inherit;
corner-bottom-shape: initial;
corner-bottom-shape: revert;
corner-bottom-shape: revert-layer;
corner-bottom-shape: unset;
值
corner-bottom-shape 属性使用一个或两个 <corner-shape-value> 值指定
- 如果使用一个值,它将指定两个底角的形状。
- 如果使用两个值,第一个值指定左下角的形状,第二个值指定右下角的形状。
正式定义
在数据库中未找到值!正式语法
corner-bottom-shape =
<'corner-top-left-shape'>{1,2}
<corner-top-left-shape> =
<corner-shape-value>
<corner-shape-value> =
round |
scoop |
bevel |
notch |
square |
squircle |
<superellipse()>
<superellipse()> =
superellipse( <number [-∞,∞]> |
infinity |
-infinity )
示例
你可以在 corner-shape 参考页面上找到其他相关示例。
corner-bottom-shape 基本用法
HTML
此示例的标记包含一个单独的 <div> 元素。
html
<div></div>
CSS
我们为框提供了一些基本样式,为了简洁起见,我们将其隐藏。我们还应用了一个 box-shadow,一个 60px 30px 20% 40% 的 border-radius,以及一个 square squircle 的 corner-bottom-shape。
css
div {
box-shadow: 1px 1px 3px gray;
border-radius: 60px 30px 20% 40%;
corner-bottom-shape: square squircle;
}
结果
渲染结果如下所示:
规范
| 规范 |
|---|
| CSS Borders and Box Decorations Module Level 4 # propdef-corner-bottom-shape |
浏览器兼容性
加载中…