Style borderWidth Property
Przykład
Określ szerokości obramowania obrazu:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Definicja i użycie
Właściwość borderImageWidth określa szerokość obramowania obrazu.
Obsługa przeglądarki
Liczby w tabeli określają pierwszą wersję przeglądarki, która w pełni obsługuje tę właściwość.
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Zamiast tego spójrz na właściwość borderImage !
Składnia
Zwróć właściwość borderImageWidth:
object.style.borderImageWidth
Ustaw właściwość borderImageWidth:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Wartości nieruchomości
Value | Description |
---|---|
length | A length unit (px) specifying the size of the border-width |
number | Default value 1. Represents multiples of the corresponding border-width |
% | Refers to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets |
auto | If specified, the width is the intrinsic width or height of the corresponding image slice |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Szczegóły techniczne
Domyślna wartość: | 1 |
---|---|
Wartość zwrotu: | String, reprezentujący właściwość border-image-width elementu |
Wersja CSS | CSS3 |
Powiązane strony
Odniesienie CSS: właściwość border-image-width