<BODY BACKGROUND="★" BGPROPERTIES="fixed">〜</BODY>
   ★・・・画像のファイル名と拡張子
背景を固定HTMLタグの使用例


↓背景画像固定の応用編@


↓背景画像固定の応用編A

CSS(スタイルシート)で背景画像を固定B


小さいアイコンやタイル壁紙などを固定する
左端に並べる 右端に並べる
<STYLE type="text/css">
<!--
BODY{
background-image:url(画像のファイル名);
background-repeat : repeat-y;
background-attachment : fixed;
background-position : left top;}
-->
</STYLE>
<STYLE type="text/css">
<!--
BODY{
background-image:url(画像のファイル名);
background-repeat : repeat-y;
background-attachment : fixed;
background-position : right top;}
-->
</STYLE>
上部に並べる 下部に並べる
<STYLE type="text/css">
<!--
BODY{
background-image:url(画像のファイル名);
background-repeat : repeat-x;
background-attachment :fixed;
background-position : fixed;}
-->
</STYLE>
<STYLE type="text/css">
<!--
BODY{
background-image:url(画像のファイル名);
background-repeat : repeat-x;
background-attachment :fixed;
background-position : bottom;}
-->
</STYLE>
<HEAD>〜</HEAD>の間に↑のタグを入れてください

戻る

Copyright © 2006 Sapphire All Rights Reserved