Share via


backgroundAttachment

backgroundAttachment backgroundAttachment *
*前のトピック: background
*次のトピック: backgroundColor

backgroundAttachment

解説

背景画像を、コンテンツと一緒にスクロールさせるか固定するかを設定したり、設定を読み出すことができる。

構文

object**.style.backgroundAttachment**[ = scroll]

注意事項

使用できる値は以下の通り。

fixed 背景画像はコンテンツと一緒にスクロールしない。
scroll 背景画像はコンテンツと一緒にスクロールする。

このプロパティは読み書き可能である。

適用

HTMLタグ BODY, HTML
スクリプト style

CSS属性

background-attachment

Up トップに戻る
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.