Stile borderImageRepeat Proprietà
Esempio
Specifica come ripetere il bordo dell'immagine:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definizione e utilizzo
La proprietà borderImageRepeat imposta o restituisce se il bordo dell'immagine deve essere ripetuto, arrotondato o allungato.
Supporto del browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Guarda invece la proprietà borderImage !
Sintassi
Restituisce la proprietà borderImageRepeat:
object.style.borderImageRepeat
Imposta la proprietà borderImageRepeat:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | stirata |
---|---|
Valore di ritorno: | Una stringa, che rappresenta la proprietà border-image-repeat di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Riferimento CSS: proprietà border-image-repeat