Propriété de style borderImageWidth
Exemple
Spécifiez les largeurs de la bordure de l'image :
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Définition et utilisation
La propriété borderImageWidth spécifie les largeurs de la bordure de l'image.
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Regardez plutôt la propriété borderImage !
Syntaxe
Renvoyez la propriété borderImageWidth :
object.style.borderImageWidth
Définissez la propriété borderImageWidth :
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Valeurs de propriété
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 |
Détails techniques
Valeur par défaut: | 1 |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété border-image-width d'un élément |
Version CSS | CSS3 |
Pages connexes
Référence CSS : propriété border-image-width