背景画像の並べ方の設定ブロックの背景に設定した画像の並べ方を設定するには、 background-repeatプロパティを設定します。 background-repeat: 並べ方 </pre> background-repeatプロパティは、背景画像の並べ方を指定します。 並べ方には、次の4種類があります。 プロパティを指定していない状態は、「repeat」を指定したときと同じ状態です。 -repeat: 縦横にタイル状に繰り返して並べる -repeat-x: 横方向にだけ繰り返して並べる -repeat-y: 縦方向にだけ繰り返して並べる -no-repeat: 1つだけ表示(繰り返さない) #pre(novervatim){{ body { background-image: url(bgimage.gif); background-repeat: repeat-y; } </pre> -background-repeatの例(repeat-x) #ref(css03.png,nolink,background-repeatの例); -background-repeatの例(repeat-y) #ref(css04.png,nolink,background-repeatの例); |