corner-inline-end-shape
corner-inline-end-shape CSS 屬性指定了框的內聯末端邊緣上兩個角的形狀,在其 border-radius 區域內。
有關角形狀行為的完整描述和多個示例,請參見 corner-shape 簡寫屬性頁面。
構成屬性
corner-inline-end-shape 屬性是以下物理屬性的簡寫
語法
css
/* Single keyword value set for both corners */
corner-inline-end-shape: squircle;
corner-inline-end-shape: scoop;
/* Single superellipse() value set for both corners */
corner-inline-end-shape: superellipse(1.5);
corner-inline-end-shape: superellipse(-0.8);
/* Block-start/inline-end corner, block-end/inline-end corner */
corner-inline-end-shape: squircle scoop;
corner-inline-end-shape: squircle superellipse(-0.8);
/* Global values */
corner-inline-end-shape: inherit;
corner-inline-end-shape: initial;
corner-inline-end-shape: revert;
corner-inline-end-shape: revert-layer;
corner-inline-end-shape: unset;
值
corner-inline-end-shape 屬性使用一個或兩個 <corner-shape-value> 值指定。
- 如果使用一個值,它指定兩個內聯末端角的形狀。
- 如果使用兩個值,第一個值指定塊起始/內聯末端角的形狀,第二個值指定塊末端/內聯末端角的形狀。
正式定義
在資料庫中未找到值!正式語法
corner-inline-end-shape =
<'corner-top-left-shape'>{1,2}
<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-inline-end-shape 的基本用法
HTML
此示例的標記包含一個單獨的 <div> 元素。
html
<div></div>
CSS
我們給框一些基本樣式,為了簡潔起見我們隱藏了這些樣式。我們還應用了一個 box-shadow,一個 15% 30% 的 border-radius,以及一個 bevel squircle 的 corner-inline-end-shape。
css
div {
box-shadow: 1px 1px 3px gray;
border-radius: 15% 30%;
corner-inline-end-shape: bevel squircle;
}
結果
渲染結果如下所示:
規範
| 規範 |
|---|
| CSS Borders and Box Decorations Module Level 4 # propdef-corner-inline-end-shape |
瀏覽器相容性
載入中…