CSS Learning (ix)-CSS background

Source: Internet
Author: User

First, the theory:
1.background-break
A.bounding-box background images are tiled across inline elements
B.each-box background images are tiled in rows
C.continuous the background image of the next line continues tiling the image in the previous row
The above is only available under Firefox
2.CSS Multi-background
A.background-image setting element background picture min, available relative address or absolute address index background image
B.background-repeat sets the tiling of the element background image by default repeat
C.background-size setting the dimension size of an element's background image default auto
D.background-attachment sets whether the background picture of an element is fixed by default scroll
E.background-clip control element Background image display Area size, default Border-box
F.background-color setting element background color
G. The middle of multiple attributes must be separated by ","
H. The first statement of the background image will be on the top, the last designated picture on the bottom

Second, Practice:

1.

<!    DOCTYPE html>2.

<!    DOCTYPE html>


CSS Learning (ix)-CSS background

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.