CSS Background Chart Routines two: single element set multi-background map

Source: Internet
Author: User

The article may not be reproduced without consent.


The following diagram needs (pictures from the network):



For the above requirements, you can let the designer help the multiple cards to synthesize a picture, front-end only need to set a background on OK.

However, if the designer only provides a number of separate poker pictures, how to set multiple background map on the same element. The routine is simple:

. bgsection {
    background:url ("1.png"),
                url ("2.png"),
                #ffffff;
}


For example: set an element with a white background and a border up and down (by adjusting the position of the background)

. bgsection {
    background:url ("line_top_e6@2x.png") repeat-x 0 top/1px 1px,
                url ("Line_bottom_e6@2x.png") Repeat-x 0 bottom/1px 1px,
                #ffffff;
}



Report:
"CSS" background chart: Using Border-image to make a background image



Sign: The road long its repair far XI, I will go up and down and quest.

Author: Zhi Zhi

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.