propriété HTML DOM style borderImageWidth
Exemples
Prédéterminé largeur de l'image de la bordure:
document.getElementById("myDIV").style.borderImageWidth="20px 30px";
Essayez »
Définition et utilisation
borderImageWidth attribut spécifie la largeur de la bordure de l'image.
support du navigateur
Opera ne supporte pas la propriété borderImageWidth.
Internet Explorer version 10 et la propriété borderImageWidth antérieures ne sont pas pris en charge.
Safari version 5 et plus tôt ne supportent pas la propriété borderImageWidth.
Voir borderImage propriété pour le remplacer!
grammaire
Retour propriétés borderImageWidth:
object .style.borderImageWidth
Définition des propriétés borderImageWidth:
object .style.borderImageWidth="number|%|auto|initial|inherit"
Valeur de la propriété
值 | 描述 |
---|---|
length | 一个规定边框宽度大小的长度单位(px)。A length unit (px) specifying the size of the border-width |
number | 默认值是 1。表示相应的边框宽度的倍数。 |
% | 相对于边框图像区域大小的百分比:水平偏移参照区域的宽度,垂直偏移参照区域的高度。 |
auto | 如果规定了该属性,宽度是相应图像切片固有的宽度或高度。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
détails techniques
Par défaut: | 1 |
---|---|
Retours: | Chaîne représentant l'attribut border-image-largeur de l'élément. |
CSS version | CSS3 |
articles connexes
Référence CSS: border-width attribut-Image