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

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

"background-repeat" Example

   <source lang="html4strict">
   

<head> <style>

  1. myL {background-color:#ffccff;
     background-image:url("http://www.wbex.ru/style/logo.png");
     height:100; 
     background-repeat:repeat; 

} </style> </head> <body>

Text Text Text Text

</body> </html>


     </source>
   
  


"background-repeat" 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-repeat" Possible Values

        <source lang="html4strict"> Possible Values repeat The image is repeated both horizontally and vertically no-repeat The image is not repeated; only one copy of the image is drawn repeat-x The image is only repeated horizontally repeat-y The image is only repeated vertically

        </source>



        "background-repeat" Syntax and Note

        <source lang="html4strict"> Note: How the background image is repeated. Syntax:

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


        </source>

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