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

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

"background-image" Example

   <source lang="html4strict">
   

<html> <head> </head> <body>

Text

Text Text Text Text

           








Text Text Text Text Text Text Text

</body> </html>


     </source>
   
  


"background-image" is applied to

   <source lang="html4strict">

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

| |
<body> |

| |<button> |

| |
|

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

| | |defaults |

| |<dir>
| | |
| | | <fieldset> | | |<form> <hn> | | |<html> | | |<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> | | |<nobr>
      | | |

                               |
      |                |runtimeStyle                                               |
      |                |                                                 |
      |                |                                                |
      |                |                        style                         |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "background-image" Possible Values

        <source lang="html4strict"> Possible Values url(pathname) The pathname is the absolute or relative URL of the image file none The default, which causes the underlying background to show through

        </source>



        "background-image" Syntax and Note

        <source lang="html4strict"> Note: URL of the background image. Syntax:

        element { background-image: value } elementID.style.backgroundImage = "value" document.all.elementID.style.backgroundImage = "value" // IE only


        </source>

      <textarea> | | |<tfoot> | | |<thead>