corner-top-left-shape
corner-top-left-shape CSS 属性用于指定盒子左上角的形状,在它的 border-radius 区域内。
有关角形状行为的完整描述和多个示例,请参见 corner-shape 简写属性页面。
语法
css
/* Keyword values */
corner-top-left-shape: notch;
corner-top-left-shape: squircle;
/* superellipse() function values */
corner-top-left-shape: superellipse(3);
corner-top-left-shape: superellipse(-1.5);
/* Global values */
corner-top-left-shape: inherit;
corner-top-left-shape: initial;
corner-top-left-shape: revert;
corner-top-left-shape: revert-layer;
corner-top-left-shape: unset;
值
corner-top-left-shape 属性使用 <corner-shape-value> 值来指定。
正式定义
在数据库中未找到值!正式语法
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-top-left-shape 的基本用法
HTML
此示例的标记包含一个单独的 <div> 元素。
html
<div></div>
CSS
我们给盒子设置了一些基本的样式,为了简洁已隐藏。我们还应用了 box-shadow,border-radius 为 25% 100px,以及 corner-top-left-shape 为 scoop。
css
div {
box-shadow: 1px 1px 3px gray;
border-radius: 25% 100px;
corner-top-left-shape: scoop;
}
结果
渲染结果如下所示:
规范
| 规范 |
|---|
| CSS Borders and Box Decorations Module Level 4 # propdef-corner-top-left-shape |
浏览器兼容性
加载中…