Style borderImageRepeat- Eigenschaft
Beispiel
Geben Sie an, wie der Bildrand wiederholt werden soll:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definition und Verwendung
Die Eigenschaft borderImageRepeat legt fest oder gibt zurück, ob der Bildrand wiederholt, abgerundet oder gestreckt werden soll.
Browser-Unterstützung
Die Zahlen in der Tabelle geben die erste Browserversion an, die die Eigenschaft vollständig unterstützt.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Sehen Sie sich stattdessen die Eigenschaft borderImage an!
Syntax
Geben Sie die Eigenschaft borderImageRepeat zurück:
object.style.borderImageRepeat
Legen Sie die Eigenschaft borderImageRepeat fest:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Eigenschaftswerte
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
Standardwert: | strecken |
---|---|
Rückgabewert: | Ein String, der die Eigenschaft border-image-repeat eines Elements darstellt |
CSS-Version | CSS3 |
Verwandte Seiten
CSS-Referenz: Eigenschaft border-image-repeat