Styl borderImageRepeat Property
Voorbeeld
Spesifiseer hoe om die beeldgrens te herhaal:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definisie en gebruik
Die borderImageRepeat-eienskap stel of gee terug of die beeldgrens herhaal, afgerond of gestrek moet word.
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Kyk eerder na die borderImage- eiendom!
Sintaksis
Gee die borderImageRepeat-eienskap terug:
object.style.borderImageRepeat
Stel die borderImageRepeat-eienskap:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | rek |
---|---|
Terugkeerwaarde: | 'n String, wat die grens-beeld-herhaal-eienskap van 'n element verteenwoordig |
CSS weergawe | CSS3 |
Verwante bladsye
CSS verwysing: border-image-repeat eiendom