--- title: border-image-repeat slug: Web/CSS/border-image-repeat translation_of: Web/CSS/border-image-repeat ---
The border-image-repeat
CSS property defines how the middle part of a border image is handled so that it can match the size of the border. It has a one-value syntax that describes the behavior of all the sides, and a two-value syntax that sets a different value for the horizontal and vertical behavior.
/* border-image-repeat: type */ border-image-value: stretch; /* border-image-repeat: horizontal vertical */ border-image-width: round stretch; /* Глобальные значения */ border-image-repeat: inherit; border-image-repeat: initial; border-image-repeat: unset;
stretch
, repeat
, or round
keywords denoting how the image is treated both horizontally and vertically.stretch
, repeat
, or round
keywords denoting how the image is treated horizontally.stretch
, repeat
, or round
keywords denoting how the image is treated vertically.stretch
repeat
round
space
{{csssyntax}}
See {{cssxref("border-image")}} for examples of what repeat values will do.
Спецификация | Статус | Комментарий |
---|---|---|
{{SpecName('CSS3 Backgrounds', '#border-image-repeat', 'border-image-repeat')}} | {{Spec2('CSS3 Backgrounds')}} | Первоначальное определение |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Базовая поддержка | 15.0 | {{CompatGeckoDesktop("15.0")}} | 11 | 15 | 6[1] |
space |
{{CompatNo}}[1] | {{CompatNo}}[3] | 11 | {{CompatNo}} | 9.1[5] |
round |
30[4] | {{CompatGeckoDesktop("15.0")}} | 11 | {{CompatUnknown}} | 9.1[5] |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Базовая поддержка | {{CompatUnknown}} | {{CompatGeckoMobile("15.0")}} | {{CompatNo}} | {{CompatUnknown}} | 9.3[5] |
[1] Support the space
value, but the actual effect is the same as the repeat
value.
[2] Support the round
value, but the actual effect is the same as the repeat value.
[3] См. {{bug(720531)}}.
[4] См. Chrome bug.
[5] См. WebKit bug.