HTML CSS Reference/CSS Attributes and Javascript Style Properties/background attachment

Материал из Web эксперт
Перейти к: навигация, поиск

"background-attachment" Example

   <source lang="html4strict">
   

<html> <body>

www.wbex.ru
           








www.wbex.ru

Text </body> </html>


     </source>
   
  


"background-attachment" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |

| |
<body> |

| |<button> |

| |
|

| | <col> | | |<colgroup> currentStyle | | |<custom>

| | |defaults |

| |<dir>
| | |
| | | <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>                                                   |
      |                |                             
        | | | <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>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |