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

Summary

+ +

border-image-repeat 定义图片如何填充边框。或为单个值,设置所有的边框;或为两个值,分别设置水平与垂直的边框。

+ +
{{cssinfo}}
+ +

Syntax

+ +
Formal syntax: {{csssyntax("border-image-repeat")}}  
+ +
border-image-repeat: type                      /* One-value syntax */       E.g. border-image-value: stretch;
+border-image-repeat: horizontal vertical       /* Two-value syntax */       E.g. border-image-width: round space;
+
+border-image-repeat: inherit
+
+ +

Values

+ +
+
type
+
stretch, repeat, round, space 选一。属于单个值的情况。
+
horizontal
+
stretch, repeat, round, space 选一。属于两个值的情况。
+
vertical
+
stretch, repeat, round, space 选一。属于两个值的情况。
+
stretch
+
拉伸图片以填充边框。
+
repeat
+
平铺图片以填充边框。
+
round
+
平铺图像。当不能整数次平铺时,根据情况放大或缩小图像。
+
space
+
平铺图像 。当不能整数次平铺时,会用空白间隙填充在图像周围(不会放大或缩小图像)
+
inherit
+
继承父级元素的计算值。
+
+ +

Examples

+ +

不同的取值,查看 {{cssxref("border-image")}} 的示例。

+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('CSS3 Backgrounds', '#border-image-repeat', 'border-image-repeat')}}{{Spec2('CSS3 Backgrounds')}}Initial specification
+ +

Browser compatibility

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support15.0{{CompatGeckoDesktop("15.0")}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatGeckoMobile("15.0")}}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

早期候选推荐版本中有space,不过没有浏览器实现它,因而移除,将来可能添加进来。

-- cgit v1.2.3-54-g00ecf