最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

background-attachment Attribute | backgroundAttachment Property

Internet Development Index

Sets or retrieves how the background image is attached to the object within the document.

Syntax

HTML { background-attachment : sAttachment }
Scriptingobject.style.backgroundAttachment [ = sAttachment ]

Possible Values

sAttachmentString that specifies or receives one of the following values.
scrollDefault. Background image scrolls with the object as the document is scrolled.
fixedBackground image stays fixed within the viewable area of the object.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of scroll. The Cascading Style Sheets (CSS) attribute is not inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

This property can be set with the other background properties by using the background composite property.

Microsoft® Internet Explorer 3.0 supports the background-attachment attribute, but only when it's set by using the background attribute.

Examples

The following examples use the background-attachment attribute and the backgroundAttachment property to set the background to "fixed", so that the background does not scroll with the text.

This example uses an inline style sheet to set the background to fixed.

<STYLE >
BODY { background-attachment:fixed }
</STYLE>
</HEAD>
<BODY background="some.jpg">
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

This example uses inline scripting to set the background to fixed.

<BODY ID="oBdy" background="marble05.jpg"
onload="oBdy.style.backgroundAttachment = 'fixed'">
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Non-Microsoft link.

Applies To

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, CUSTOM, DD, defaults, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, hn, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LAYOUTRECT, LEGEND, LI, LISTING, MARQUEE, MENU, OL, OPTION, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
宜良县| 大竹县| 毕节市| 和静县| 健康| 于都县| 怀远县| 鸡泽县| 安庆市| 三河市| 汝南县| 麟游县| 通许县| 常宁市| 繁昌县| 扎赉特旗| 缙云县| 敖汉旗| 宁乡县| 枣庄市| 马鞍山市| 仲巴县| 锡林浩特市| 黑龙江省| 祁门县| 宜宾县| 密山市| 德惠市| 灵台县| 盐城市| 沈阳市| 晋城| 安远县| 额尔古纳市| 日照市| 监利县| 开原市| 防城港市| 辰溪县| 博兴县| 东乡县|