Propriedade de estilo borderImageWidth
Exemplo
Especifique as larguras da borda da imagem:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Definição e uso
A propriedade borderImageWidth especifica as larguras da borda da imagem.
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Olhe para a propriedade borderImage !
Sintaxe
Retorne a propriedade borderImageWidth:
object.style.borderImageWidth
Defina a propriedade borderImageWidth:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Valores de propriedade
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 |
Detalhes técnicos
Valor padrão: | 1 |
---|---|
Valor de retorno: | Uma String, representando a propriedade border-image-width de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Referência CSS: propriedade border-image-width