Proprietà CSS border-image-width
Esempio
Specificare la larghezza dell'immagine del bordo:
#borderimg
{
border-image-source: url(border.png);
border-image-width: 10px;
}
Definizione e utilizzo
La border-image-width
proprietà specifica la larghezza dell'immagine del bordo.
Suggerimento: guarda anche la proprietà border-image (una proprietà abbreviata per impostare tutte le proprietà border-image-*).
Valore di default: | 1 |
---|---|
Ereditato: | no |
Animabile: | no. Leggi su animabile |
Versione: | CSS3 |
sintassi JavaScript: | oggetto .style.borderImageWidth="20px" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
border-image-width | 15.0 | 11.0 | 13.0 | 6.0 | 15.0 |
Sintassi CSS
border-image-width: number|%|auto|initial|inherit;
Nota: la border-image-width
proprietà può assumere da uno a quattro valori (lato superiore, destro, inferiore e sinistro). Se il quarto valore viene omesso, è uguale al secondo. Se si omette anche il terzo, è uguale al primo. Se si omette anche il secondo, è uguale al primo.
Valori di proprietà
Value | Description | Play it |
---|---|---|
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 |
Pagine correlate
Tutorial CSS: Immagini di bordo CSS
Riferimento CSS: proprietà border-image
Riferimento CSS: proprietà border-image-outset
Riferimento CSS: proprietà border-image-repeat
Riferimento CSS: proprietà border-image-slice
Riferimento CSS: proprietà border-image-source
Riferimento DOM HTML: proprietà borderImageWidth