corner-start-end-shape
corner-start-end-shape CSS 属性用于指定盒子在其 border-radius 区域内,块起始和行结束角的形状。
有关角形状行为的完整描述和多个示例,请参见 corner-shape 简写属性页面。
语法
css
/* Keyword values */
corner-start-end-shape: square;
corner-start-end-shape: bevel;
/* superellipse() function values */
corner-start-end-shape: superellipse(1.5);
corner-start-end-shape: superellipse(-2.2);
/* Global values */
corner-start-end-shape: inherit;
corner-start-end-shape: initial;
corner-start-end-shape: revert;
corner-start-end-shape: revert-layer;
corner-start-end-shape: unset;
值
corner-start-end-shape 属性使用 <corner-shape-value> 值指定。
正式定义
在数据库中未找到值!正式语法
corner-start-end-shape =
<corner-shape-value>
<corner-shape-value> =
round |
scoop |
bevel |
notch |
square |
squircle |
<superellipse()>
<superellipse()> =
superellipse( <number [-∞,∞]> |
infinity |
-infinity )
示例
你可以在 corner-shape 参考页面上找到其他相关示例。
corner-start-end-shape 的基本用法
HTML
此示例的标记包含一个单独的 <div> 元素。
html
<div></div>
CSS
我们为盒子提供了一些基本样式,为了简洁起见,我们将其隐藏。我们还应用了 box-shadow,一个 border-radius 值 20px 40px 60px 80px,以及一个 notch 的 corner-start-end-shape 值。
css
div {
box-shadow: 1px 1px 3px gray;
border-radius: 20px 40px 60px 80px;
corner-start-end-shape: notch;
}
结果
渲染结果如下所示:
规范
| 规范 |
|---|
| CSS Borders and Box Decorations Module Level 4 # propdef-corner-start-end-shape |
浏览器兼容性
加载中…