スタイルborderImageRepeatプロパティ
例
画像の境界線を繰り返す方法を指定します。
document.getElementById("myDIV").style.borderImageRepeat = "round";
定義と使用法
borderImageRepeatプロパティは、画像の境界線を繰り返すか、丸めるか、引き伸ばすかを設定または返します。
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
代わりにborderImageプロパティを見てください!
構文
borderImageRepeatプロパティを返します。
object.style.borderImageRepeat
borderImageRepeatプロパティを設定します。
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
プロパティ値
Value | Description |
---|---|
stretch | Default value. The image is stretched to fill the area |
repeat | The image is tiled (repeated) to fill the area |
round | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so it fits |
space | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
技術的な詳細
デフォルト値: | ストレッチ |
---|---|
戻り値: | 要素のborder-image-repeatプロパティを表す文字列 |
CSSバージョン | CSS3 |
関連ページ
CSSリファレンス:border-image-repeatプロパティ