CSS background-repeat attribute and cssbackground attribute
Definition and usage of the background-repeat attribute:
Sets or retrieves how the background image of an object is prefixed.
The background-image attribute must be specified first.
Two parameters are allowed. If all two parameters are provided, 1st are used for the horizontal direction, and the second is used for the vertical direction.
If only one parameter is provided, it is used either horizontally or vertically. Except for repeat-x and repeat-y, because repeat-x is equivalent to repeat no-repeat, repeat-y is equivalent to no-repeat, in fact, repeat-x and repeat-y are equivalent to providing two parameter values.
The corresponding script feature is backgroundRepeat.
Syntax structure:
background-repeat:repeat-x | repeat-y | [repeat | space | round | no-repeat
Valid value:
Repeat: the background image is tiled horizontally and vertically by default.
Repeat-x: the background image is tiled horizontally.
Repeat-y: the background image is tiled vertically.
No-repeat: the background image is not tiled.
Round: the background image scales automatically until it is adapted and filled with the entire container. (CSS3)
Space: the background image is tiled with the same spacing and filled with the entire container or in a certain direction. (CSS3)
Browser support:
1. IE8 and earlier Browsers Do not support defining two parameter values for background-repeat, while CSS3 does not support adding the parameter value round | space.
2. Firefox4.0-8.0 does not support defining two parameter values for background-repeat; does not support adding parameter values for CSS3 to round | space.
3. Safari5.1 has accepted the new parameter value round | space in CSS3, but not yet supported. 4. chromebench-16.0 has accepted the new parameter value round | space in CSS3, but it is not yet supported.
Inheritance:
No inheritance.
Instance code:
<! DOCTYPE html>
The original Article address is CSS background-repeat attribute.
For more css articles see http://www.softwhy.com/divcss/