Stijl borderImageRepeat Property
Voorbeeld
Specificeer hoe de afbeeldingsrand moet worden herhaald:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definitie en gebruik
De eigenschap borderImageRepeat bepaalt of retourneert of de afbeeldingsrand moet worden herhaald, afgerond of uitgerekt.
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Kijk in plaats daarvan naar de eigenschap borderImage !
Syntaxis
Retourneer de eigenschap borderImageRepeat:
object.style.borderImageRepeat
Stel de eigenschap borderImageRepeat in:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Eigendomswaarden
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 |
Technische details
Standaardwaarde: | rekken |
---|---|
Winstwaarde: | Een tekenreeks, die de eigenschap border-image-repeat van een element voorstelt |
CSS-versie | CSS3 |
Gerelateerde pagina's
CSS-referentie: eigenschap border-image-repeat