Estilo borderImageRepeat Propiedad
Ejemplo
Especifique cómo repetir el borde de la imagen:
document.getElementById("myDIV").style.borderImageRepeat = "round";
Definición y uso
La propiedad borderImageRepeat establece o devuelve si el borde de la imagen debe repetirse, redondearse o estirarse.
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
¡Observa la propiedad borderImage en su lugar!
Sintaxis
Devuelve la propiedad borderImageRepeat:
object.style.borderImageRepeat
Establezca la propiedad borderImageRepeat:
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | tramo |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad border-image-repeat de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia CSS: propiedad border-image-repeat