HTML CSS Reference/CSS Attributes and Javascript Style Properties/background attachment
Содержание
"background-attachment" Example
<source lang="html4strict">
<html> <body>
Text </body> </html>
</source>
"background-attachment" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |
| |<body> || |<button>
| | | | | |
| |<dir><col> | | |<colgroup> currentStyle | | |<custom>
| | |defaults | | | |
- | | | <fieldset> | | |<form> <hn> | | |<html> | | |<iframe> <img> | | |<input type="button"> <input type="checkbox"> | | |<input type="file"> <inputtype="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> <isindex> | | | <label> | | |<legend>
- | | |<listing> <marquee> | | |<menu>
| | |<option>
| | |
runtimeStyle | | || | | | | || | |style | | || | |<tbody>
| | |<textarea> <tfoot> |
| |<thead> | | | | | | | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>
"background-attachment" Possible Values
<source lang="html4strict"> Possible Values fixed keeps the image stationary. scroll image scrolls with the object.
</source>
"background-attachment" Syntax and Note
<source lang="html4strict"> Note: Whether the background image remains fixed or scrolls with the content. Syntax:
element { background-attachment: value } elementID.style.backgroundAttachment = "value" document.all.elementID.style.backgroundAttachment = "value" // IE only
</source>