div.hatena-body{ background-attachment: fixed; background-image: url(背景にしたい画像); background-repeat: no-repeat; background-position: right bottom}-->
画像を右下に固定して表示する
左下に固定したい場合right bottomのrightの部分をleftに変更する
div.hatena-body{ background-attachment: fixed; background-image: url(背景にしたい画像); background-repeat: repeat; background-position: right bottom}-->
画像を全体に繰り返して並べる
background-repeat: repeat;の部分のrepeat;を変更して出来ること
- repeat-x;
- 画像を横方向に繰り返しならべる
- repeat-y;
- 画像を縦方向に繰り返しならべる
- no-repeat;
- 画像を繰り返さない
最終更新:2010年06月06日 11:02