Style borderImageWidth attribute
- Vorherige Seite
- Nächste Seite
- Zurück zur übergeordneten Ebene HTML DOM Style-Objekt
Definition and usage
borderImageWidth
Attribute specifies the width of the image border.
See also:
CSS Reference Manual:border-image-width property
Example
Specify the width of the image border:
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
Syntax
Return borderImageWidth property:
object.style.borderImageWidth
Set borderImageWidth property:
object.style.borderImageWidth = "number|%|auto|initial|inherit"
Attribute value
Value | Description |
---|---|
length | ???Specifies the border width size in pixels. |
number | Default value 1. Represents a multiple of the corresponding border-width. |
% | Reference the size of the border image area: the height affects the horizontal offset, and the width affects the vertical offset. |
auto | If specified, the width is the inherent width or height of the corresponding image slice. |
initial | Set this property to its default value. See also initial. |
inherit | This property inherits from its parent element. See also inherit. |
Technical details
Default value: | 1 |
---|---|
Return value: | A string that represents the element's border-image-width property. |
CSS Version: | CSS3 |
Browser support
Die in der Tabelle genannten Zahlen geben die Versionsnummer des ersten Browsers an, der diese Eigenschaft vollständig unterstützt.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Unterstützt | 11.0 | Unterstützt | 6.0 | 15.0 |
Bitte überprüfen Sie borderImage-Eigenschaft!
- Vorherige Seite
- Nächste Seite
- Zurück zur übergeordneten Ebene HTML DOM Style-Objekt