Стиль borderImageSlice Свойство
Пример
Укажите внутренние смещения границы изображения:
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
Определение и использование
Свойство borderImageSlice указывает внутренние смещения границы изображения.
Поддержка браузера
Цифры в таблице указывают на первую версию браузера, которая полностью поддерживает это свойство.
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Вместо этого посмотрите на свойство borderImage !
Синтаксис
Верните свойство borderImageSlice:
object.style.borderImageSlice
Задайте свойство borderImageSlice:
object.style.borderImageSlice = "number|%|fill|initial|inherit"
Значения свойств
Value | Description |
---|---|
number | Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image) |
% | Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. Default value is 100% |
fill | Causes the middle part of the border-image to be preserved |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Технические детали
Значение по умолчанию: | 100% |
---|---|
Возвращаемое значение: | Строка, представляющая свойство border-image-slice элемента. |
CSS-версия | CSS3 |
Связанные страницы
Справочник по CSS: свойство border-image-slice