Stile borderImageWidth Proprietà
Esempio
Specifica le larghezze del bordo dell'immagine:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Definizione e utilizzo
La proprietà borderImageWidth specifica le larghezze del bordo dell'immagine.
Supporto del browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Guarda invece la proprietà borderImage !
Sintassi
Restituisce la proprietà borderImageWidth:
object.style.borderImageWidth
Imposta la proprietà borderImageWidth:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | 1 |
---|---|
Valore di ritorno: | Un oggetto String, che rappresenta la proprietà border-image-width di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Riferimento CSS: proprietà border-image-width