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-radius 為 30% / 20%,以及一個 corner-bottom-right-shape 為 notch。
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 |
瀏覽器相容性
載入中…