サイト内検索
...タグ・小技・etc...
2枚の背景画像
背景画像を下側・右側に固定します。
- 背景画像の変わった使い方・・・「小粋空間」を参照させて頂きました。
- 外部ファイルで背景画像を表示させる場合・・・・MSN相談箱より
- 背景画像の外部スタイルシートファイル(.css)から見た
- 画像ファイルの相対アドレス(url)を記述します。
サンプルのソース
[headの中]
<style type="text/css"><!--
#sample1{
background-image: url(../../img/sample1.png);
background-repeat: repeat-x;
background-attachment: fixed;
}
#sample2{
background-image: url(../../img/sample2.gif);
background-repeat: repeat-y;
background-position: bottom;
background-position: right;
background-attachment: fixed;
}
-->
</style>
[bodyの中]
<body id="sample1"><div id="sample2">
</body>