スタイルborderImageOutsetプロパティ
例
<div>要素の端の外側に境界線を配置します。
document.getElementById("myDIV").style.borderImageOutset = "5px 10px 20px 15px";
定義と使用法
borderImageOutsetプロパティは、境界線の画像領域が境界線ボックスを超えて広がる量を設定または返します。
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
borderImageOutset | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
代わりにborderImageプロパティを見てください!
構文
borderImageOutsetプロパティを返します。
object.style.borderImageOutset
borderImageOutsetプロパティを設定します。
object.style.borderImageOutset = "length|number|initial|inherit"
注: borderImageOutsetプロパティは、境界線の画像領域が境界線ボックスを超えて広がる量を指定します。上、右、下、左側にあります。4番目の値を省略すると、2番目の値と同じになります。3つ目も省略した場合は1つ目と同じです。2つ目も省略した場合は1つ目と同じです。負の値は、borderImageOutset値のいずれにも使用できません。
プロパティ値
Value | Description |
---|---|
length | A length unit specifying how far from the edges the border-image will appear. Default value is 0 |
number | Represent multiples of the corresponding border-width |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
技術的な詳細
デフォルト値: | 0 |
---|---|
戻り値: | 要素のborder-image-outsetプロパティを表す文字列 |
CSSバージョン | CSS3 |
関連ページ
CSSリファレンス:border-image-outsetプロパティ