From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/css/mask-border-width/index.html | 86 ++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 files/zh-cn/web/css/mask-border-width/index.html (limited to 'files/zh-cn/web/css/mask-border-width') diff --git a/files/zh-cn/web/css/mask-border-width/index.html b/files/zh-cn/web/css/mask-border-width/index.html new file mode 100644 index 0000000000..c161c7ac0e --- /dev/null +++ b/files/zh-cn/web/css/mask-border-width/index.html @@ -0,0 +1,86 @@ +--- +title: mask-border-width +slug: Web/CSS/mask-border-width +translation_of: Web/CSS/mask-border-width +--- +
{{CSSRef}}{{SeeCompatTable}}
+ +
mask-border-width CSS 属性设置元素的 mask border的宽度
+ +

语法

+ +
/* Keyword value */
+mask-border-width: auto;
+
+/* <length> value */
+mask-border-width: 1rem;
+
+/* <percentage> value */
+mask-border-width: 25%;
+
+/* <number> value */
+mask-border-width: 3;
+
+/* vertical | horizontal */
+mask-border-width: 2em 3em;
+
+/* top | horizontal | bottom */
+mask-border-width: 5% 15% 10%;
+
+/* top | right | bottom | left */
+mask-border-width: 5% 2em 10% auto;
+
+/* Global values */
+mask-border-width: inherit;
+mask-border-width: initial;
+mask-border-width: unset;
+
+ +

可以使用从下面的值列表中选择的一个,两个,三个或四个值来指定mask-border-width属性。

+ + + +

+ +
+
<length-percentage>
+
mask边框宽度指定一个值或者百分比,设定百分比时,是相对于mask的长度和宽度。不能为负数。
+
<number>
+
mask边框宽度为元素border-width的倍数。不能为负数。
+
auto
+
使mask-border的宽度等于相应mask-border-slice的固有宽度或高度(以适用者为准),如果图像没有所需的固有尺寸,则使用相应的边框宽度。
+
+ +

Formal syntax

+ +
{{csssyntax}}
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("CSS Masks", "#propdef-mask-border-width", "mask-border-width")}}{{Spec2("CSS Masks")}}Initial definition
+ +

{{cssinfo}}

+ +

浏览器兼容性

+ +

待定

-- cgit v1.2.3-54-g00ecf