Estilo borderImageWidth Propiedad
Ejemplo
Especifique los anchos del borde de la imagen:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Definición y uso
La propiedad borderImageWidth especifica los anchos del borde de la imagen.
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
¡Observa la propiedad borderImage en su lugar!
Sintaxis
Devuelve la propiedad borderImageWidth:
object.style.borderImageWidth
Establezca la propiedad borderImageWidth:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Valores de propiedad
Value | Description |
---|---|
length | A length unit (px) specifying the size of the border-width |
number | Default value 1. Represents multiples of the corresponding border-width |
% | Refers to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets |
auto | If specified, the width is the intrinsic width or height of the corresponding image slice |
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: | 1 |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad border-image-with de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia CSS: propiedad border-image-width