サイト内検索
...スタイルシート(css)...
スタイルシート・背景画像
位置を指定して表示
このページは、「background-position: 500px 180px;」を指定しています。
組み合わせた使用例はこちらです。
- 外部ファイルで背景画像を表示させる場合・・・・MSN相談箱より
- 背景画像の外部スタイルシートファイル(.css)から見た
- 画像ファイルの相対アドレス(url)を記述します。
- 画像の位置をもう一度、見なおしてみてください。
組み合わせた使用例はこちらです。
サンプル
[headの中]
<style type="text/css"><!--
body{
background-image: url(../img/sample.jpg);
background-repeat: no-repeat;
background-position: 500px 180px;
background-color : transparent;
background-attachment: fixed;
}
-->
</style>