背景画像の固定表示のレンダリング
背景
ホーム
>
CSS2 Note
>
background-attachment
> 背景画像の固定表示のレンダリング
fixed 背景画像を固定表示
<style type="text/css"><!--
body {background:url(img/tp2.gif);
background-attachment:fixed;
}
--></style>
<body>
</body>
背景には以下のような画像を指定しています。
scroll 背景画像をスクロール表示(初期値)
<style type="text/css"><!--
body {background:url(img/tp2.gif);
background-attachment:scroll;
}
--></style>
<body>
</body>
背景には以下のような画像を指定しています。
関連項目:
background
|
background-color
|
background-image
|
background-repeat
|
background-attachment
|
background-position
2009/02/01発行 2009/02/01更新