スタイルborderImageWidthプロパティ
例
画像の境界線の幅を指定します。
document.getElementById("myDIV").style.borderImageWidth = "20px 30px";
定義と使用法
borderImageWidthプロパティは、画像の境界線の幅を指定します。
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
borderImageWidth | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
代わりにborderImageプロパティを見てください!
構文
borderImageWidthプロパティを返します。
object.style.borderImageWidth
borderImageWidthプロパティを設定します。
object.style.borderImageWidth = "number|%|auto|initial|inherit"
プロパティ値
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 |
技術的な詳細
デフォルト値: | 1 |
---|---|
戻り値: | 要素のborder-image-widthプロパティを表す文字列 |
CSSバージョン | CSS3 |
関連ページ
CSSリファレンス:border-image-widthプロパティ