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 |
瀏覽器相容性
載入中…