Стиль границыImageRepeat Свойство
Пример
Укажите, как повторить границу изображения:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Определение и использование
Свойство borderImageRepeat устанавливает или возвращает, должна ли граница изображения повторяться, округляться или растягиваться.
Поддержка браузера
Цифры в таблице указывают на первую версию браузера, которая полностью поддерживает это свойство.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Вместо этого посмотрите на свойство borderImage !
Синтаксис
Верните свойство borderImageRepeat:
object.style.borderImageRepeat
Задайте свойство borderImageRepeat:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Значения свойств
Value | Description |
---|---|
stretch | Default value. The image is stretched to fill the area |
repeat | The image is tiled (repeated) to fill the area |
round | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so it fits |
space | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Технические детали
Значение по умолчанию: | потягиваться |
---|---|
Возвращаемое значение: | Строка, представляющая свойство border-image-repeat элемента. |
CSS-версия | CSS3 |
Связанные страницы
Справочник по CSS: свойство border-image-repeat