背景画像の固定表示のレンダリング

 
背景
ホーム > CSS2 Note > background-attachment > 背景画像の固定表示のレンダリング

fixed 背景画像を固定表示

<style type="text/css"><!--
body {background:url(img/tp2.gif); background-attachment:fixed;}
--></style>

<body>
</body>
背景には以下のような画像を指定しています。
Tempiettoの天井装飾
 

scroll 背景画像をスクロール表示(初期値)

<style type="text/css"><!--
body {background:url(img/tp2.gif); background-attachment:scroll;}
--></style>

<body>
</body>
背景には以下のような画像を指定しています。
Tempiettoの天井装飾
 
トップページ CSS2 Note ページトップ
 2009/02/01発行 2009/02/01更新