敷き詰め方

固定背景素材は、一定位置に固定して使用する壁紙を配布しています。
簡単な固定方法をご説明します。
より詳しいリファレンスは
HPできるかな
初心者のためのホームページ作り
様等リファレンスサイトをご覧ください。


**cssファイルへの記述の場合**
body { background-attachment: fixed; background-image: url(画像アドレス); background-repeat: no-repeat; background-position: right top}


**htmlへ直接記述の場合**
<style type="text/css">
<!--
body { background-attachment: fixed; background-image: url(画像アドレス); background-repeat: no-repeat; background-position: right top}
-->
</style>

赤い文字の部分で、どの位置に固定するかを変更します。%で指定する方法などもありますので、リファレンスサイト様などを参考にしてください。



ページ上部へ戻る


無料アクセス解析