corner-bottom-right-shape

可用性有限

此特性不是基线特性,因为它在一些最广泛使用的浏览器中不起作用。

实验性: 这是一项实验性技术
在生产中使用此技术之前,请仔细检查浏览器兼容性表格

corner-bottom-right-shape CSS 属性指定了盒模型的右下角在其 border-radius 区域内的形状。

有关角形状行为的完整描述和多个示例,请参见 corner-shape 简写属性页面。

语法

css
/* Keyword values */
corner-bottom-right-shape: notch;
corner-bottom-right-shape: scoop;

/* superellipse() function values */
corner-bottom-right-shape: superellipse(1.7);
corner-bottom-right-shape: superellipse(-3);

/* Global values */
corner-bottom-right-shape: inherit;
corner-bottom-right-shape: initial;
corner-bottom-right-shape: revert;
corner-bottom-right-shape: revert-layer;
corner-bottom-right-shape: unset;

corner-bottom-right-shape 属性使用 <corner-shape-value> 值来指定。

正式定义

在数据库中未找到值!

正式语法

corner-bottom-right-shape = 
<corner-shape-value>

<corner-shape-value> =
round |
scoop |
bevel |
notch |
square |
squircle |
<superellipse()>

<superellipse()> =
superellipse( <number [-∞,∞]> |
infinity |
-infinity )

示例

你可以在 corner-shape 参考页面上找到其他相关示例。

corner-bottom-right-shape 基本用法

HTML

此示例的标记包含一个单独的 <div> 元素。

html
<div></div>

CSS

我们给这个盒子一些基本样式,为了简洁起见,我们隐藏了这些样式。我们还应用了一个 box-shadow,一个 border-radius30% / 20%,以及一个 corner-bottom-right-shapenotch

css
div {
  box-shadow: 1px 1px 3px gray;
  border-radius: 30% / 20%;
  corner-bottom-right-shape: notch;
}

结果

渲染结果如下所示:

规范

规范
CSS Borders and Box Decorations Module Level 4
# propdef-corner-bottom-right-shape

浏览器兼容性

另见