CSS background-repeat attribute and cssbackground attribute

Source: Internet
Author: User

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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.