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