HTML CSS Reference/CSS Attributes and Javascript Style Properties/background repeat
Содержание
"background-repeat" Example
<source lang="html4strict">
<head> <style>
- myL {background-color:#ffccff;
background-image:url("http://www.wbex.ru/style/logo.png"); height:100; background-repeat:repeat;
} </style> </head> <body>
</body> </html>
</source>
"background-repeat" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |
| |<body> || |<button>
| | | | | |
| |<dir><col> | | |<colgroup> currentStyle | | |<custom>
| | |defaults | | | |
- | | | <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> | | |
<textarea> | | |<tfoot> | | |<thead> | | | | | | | | |<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>