Propriedade de estilo borderImageRepeat
Exemplo
Especifique como repetir a borda da imagem:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definição e uso
A propriedade borderImageRepeat define ou retorna se a borda da imagem deve ser repetida, arredondada ou esticada.
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Olhe para a propriedade borderImage !
Sintaxe
Retorne a propriedade borderImageRepeat:
object.style.borderImageRepeat
Defina a propriedade borderImageRepeat:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Valores de propriedade
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 |
Detalhes técnicos
Valor padrão: | alongamento |
---|---|
Valor de retorno: | Uma String, representando a propriedade border-image-repeat de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Referência CSS: propriedade border-image-repeat