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-repeat/index.html | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 files/zh-cn/web/css/mask-border-repeat/index.html (limited to 'files/zh-cn/web/css/mask-border-repeat') diff --git a/files/zh-cn/web/css/mask-border-repeat/index.html b/files/zh-cn/web/css/mask-border-repeat/index.html new file mode 100644 index 0000000000..4a67d40648 --- /dev/null +++ b/files/zh-cn/web/css/mask-border-repeat/index.html @@ -0,0 +1,74 @@ +--- +title: mask-border-repeat +slug: Web/CSS/mask-border-repeat +translation_of: Web/CSS/mask-border-repeat +--- +
{{CSSRef}}{{SeeCompatTable}}
+ +

mask-border-repeat CSS 属性设置如何调整源图像的边缘区域以适应元素遮罩边框的尺寸。

+ +

语法

+ +
/* Keyword value */
+mask-border-repeat: stretch;
+mask-border-repeat: repeat;
+mask-border-repeat: round;
+mask-border-repeat: space;
+
+/* vertical | horizontal */
+mask-border-repeat: round stretch;
+
+/* Global values */
+mask-border-repeat: inherit;
+mask-border-repeat: initial;
+mask-border-repeat: unset;
+
+ +

可以从下面的列表中选择一个或两个值来指定 mask-border-repeat 属性。

+ + + +

Values

+ +
+
stretch
+
拉伸源图像的边缘区域以填充每个边界之间的间隙。
+
repeat
+
源图像的边缘区域被平铺(重复)以填充每个边界之间的间隙,可以裁剪平铺图形以达到合适的贴合效果。
+
round
+
源图像的边缘区域被平铺(重复)以填充每个边界之间的间隙,可以拉伸平铺图形以实现适当的贴合。
+
space
+
源图像的边缘区域被平铺(重复)以填充每个边框之间的间隙。平铺图形之间将分配额外的空间,以实现适当的贴合。
+
+ +

正式语法

+ +
{{csssyntax}}
+ +

规范

+ + + + + + + + + + + + + + + + +
规格状态解释
{{SpecName("CSS Masks", "#propdef-mask-border-repeat", "mask-border-repeat")}}{{Spec2("CSS Masks")}}初始偏差
+ +
{{cssinfo}}
+ +

浏览器兼容性

+ +

TBD

-- cgit v1.2.3-54-g00ecf