Copyright(C) NAGARE RYU All right rezerved.
since:09.04.07
09.04.09-更新
Back
+ 背景 +
※<body>内に入れる。
◇背景色
<body bgcolor=背景色">
◇画像を使う(1)
<body background="壁紙のURL">
◇画像を使う(2) 固定
<body background="壁紙のURL" bgproperties="fixed">
◇画像を使う(3) 位置の設定 ※<head>~</head>の間に入れる
<style type="text/css">
<!--
body
{
background-color: 背景色;
background-image : url(壁紙のURL);
① background-position: center;
② background-repeat: repeat-y;
③ background-repeat: no-repeat;
④ background-attachment: fixed;
}
-->
</style>
◆(3)応用
①background-position:~; (位置指定)
1)%の使用-----例) 100% 0% (縦% 横%)
2)用語の使用------ center(中心) right(右) left(左) right top(右上) left bottom(左下)
②③background-repeat:~; (繰り返し)
1)繰り返し-------- repeat(繰り返し) repeat-x(横並び) repeat-y(縦並び)
2)繰り返し無------ no-repeat(繰り返し無)
④background-attachment: fixed; (固定)
スクロールされない
background: white url(画像URL) no-repeat center fixed;
でも可。(まとめる)