background-repeat
背景画像の並び方
background-repeat: 値;
背景画像の並び方を指定するプロパティです。
background-repeat: repeat-y;
プロパティ名 | 値 | 説明 |
---|---|---|
background-repeat | repeat | 敷き詰める (初期値) |
repeat-x | 水平方向に並べる | |
repeat-y | 垂直方向に並べる | |
no-repeat | 1つだけ表示する |
.example {
background-color: #ffffff;
background-image: url(back.gif);
background-repeat: repeat-x;
}