CSS Efficient development Combat: CSS 3, less, SASS, Bootstrap, Foundation--Reading Notes (2) CSS3 using layer overlays for multi-backgrounds

Source: Internet
Author: User
Tags dotnet

CSS 3 allows you to set multiple background images, each background image occupies a layer, the layer up and down according to the order in the CSS, the first written background in the top, each layer of the picture definition using commas separated.

For example, the following code:

Background:url (http://dotnet.aspx.cc/Book/Images/CSS1_s.jpg) 0 0 no-repeat,  url (http://dotnet.aspx.cc/Book/ images/css2_s.jpg) 200px 0 no-repeat, url ("http://dotnet.aspx.cc/Book/Images/ASPNET20Book1_s.jpg") 400px 201px No-repeat;

According to the code can be seen, each picture can be set their own displacement, size, whether or not, if there is overlap, then the picture written in front will be covered at the top.

Multi-background effects are shown in 5.4.


Finally, a book cover map, there is learning to communicate with


CSS Efficient development Combat: CSS 3, less, SASS, Bootstrap, Foundation--Reading Notes (2) CSS3 using layer overlays for multi-backgrounds

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.