Vlastnost stylu borderImageRepeat
Příklad
Určete, jak opakovat ohraničení obrázku:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definice a použití
Vlastnost borderImageRepeat nastavuje nebo vrací, zda se má ohraničení obrázku opakovat, zaokrouhlovat nebo roztahovat.
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která plně podporuje vlastnost.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Místo toho se podívejte na vlastnost borderImage !
Syntax
Vraťte vlastnost borderImageRepeat:
object.style.borderImageRepeat
Nastavte vlastnost borderImageRepeat:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | protáhnout se |
---|---|
Návratová hodnota: | Řetězec představující vlastnost border-image-repeat prvku |
Verze CSS | CSS3 |
Související stránky
CSS reference: vlastnost border-image-repeat