背景画像の並べ方
(The background)
背景
ホーム
>
CSS2 Note
> 背景画像の並べ方
C1- ie4- N4-
説明
background-repeat:
repeat
;
C1- ie4- N4-
値:
----- hint -----
a b この順序で
a|b どれか1つ
a||b 少なくとも1つ
[...] グループ
a* 0回以上
a+ 1回以上
a? 0回、1回
{a,b} a回以上b回以下
repeat | repeat-x | repeat-y | no-repeat |
inherit
初期値:
repeat
、
適用要素:
すべて
、
継承:
しない
、
%値:
なし
、
メディア:
ビジュアル
このプロパティは、背景画像が指定されている際の画像の並べ方を指定します。
使用例
body {
background:white url("tile.gif");
background-repeat:repeat-y
}
背景画像の並べ方 <'background-repeat'>
repeat
C1- ie3- N4- 背景画像は、タイル状に敷き詰められます。初期値。
repeat-x
C1- ie3- N4- 背景画像は、横方向に並べられます。
repeat-y
C1- ie3- N4- 背景画像は、縦方向に並べられます。
no-repeat
C1- ie3- N4- 背景画像は、繰り返されずひとつだけ表示されます。
背景画像の並べ方のレンダリング
repeat 背景画像をタイル状に敷き詰める(初期値)
repeat-x 背景画像を横方向に並べる
repeat-y 背景画像を縦方向に並べる
no-repeat 背景画像を繰り返さずひとつだけ表示
関連項目:
background
|
background-color
|
background-image
| background-repeat |
background-attachment
|
background-position
2005/09/21発行 2009/02/01更新