*背景画像の並べ方の設定 [#sdf6a832] ブロックの背景に設定した画像の並べ方を設定するには、 ''background-repeat''プロパティを設定します。 <pre> COLOR(red):background-repeat: COLOR(blue):並べ方 </pre> background-repeatプロパティは、背景画像の並べ方を指定します。 並べ方には、次の4種類があります。 プロパティを指定していない状態は、「repeat」を指定したときと同じ状態です。 -repeat: 縦横にタイル状に繰り返して並べる -repeat-x: 横方向にだけ繰り返して並べる -repeat-y: 縦方向にだけ繰り返して並べる -no-repeat: 1つだけ表示(繰り返さない) <pre> body { COLOR(red):background-image: url(COLOR(blue):bgimage.gifCOLOR(red):) background-image: url(bgimage.gif); COLOR(red):background-repeat: COLOR(blue):repeat-yCOLOR(black):; } h1 { COLOR(red):background-image: url(COLOR(blue):pattern1.pngCOLOR(red):) } h1 { COLOR(red):background-image: url(COLOR(blue):pattern2.pngCOLOR(red):) } </pre> &br; &navi2(Lecture/InfoDesignB2004/9th,next);進んでください。 ---- #navi2(Lecture/InfoDesignB2004/9th,prev,toc,next) |