--- title: border-image-repeat slug: Web/CSS/border-image-repeat tags: - CSS - CSS Borders - CSS Property - Reference translation_of: Web/CSS/border-image-repeat ---
border-image-repeat
定义图片如何填充边框。或为单个值,设置所有的边框;或为两个值,分别设置水平与垂直的边框。
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
stretch
, repeat
, round
, space
选一。属于单个值的情况。stretch
, repeat
, round
, space
选一。属于两个值的情况。stretch
, repeat
, round
, space
选一。属于两个值的情况。stretch
repeat
round
space
inherit
不同的取值,查看 {{cssxref("border-image")}} 的示例。
Specification | Status | Comment |
---|---|---|
{{SpecName('CSS3 Backgrounds', '#border-image-repeat', 'border-image-repeat')}} | {{Spec2('CSS3 Backgrounds')}} | Initial specification |