CSS two layers respond to a bounce

Source: Internet
Author: User

<!--there will be a picture of the content Background:url (images/123.jpg); Loading background background-size 100% 400px; The width itself can be defined by the height of the second level div height as the limit background-repeat:no-repeat; display only one picture background-position:center; picture is centered--
<div style= "Background:url (images/123.jpg); background-size:100% 400px;background-repeat:no-repeat; Background-position:center; " >
<!--the width of the parent class as the standard outer picture size--
<div style= "Width:90%;height:500px;text-align:center;" >
<!--percent Second level picture adaptive--
<div style= "Background-position:center;background-image:url (images/1111.jpg); background-size:20% 300px; Background-repeat:no-repeat; ">
<!--set the internal picture size--
<div style= "width:500px; height:500px "></div>


CSS two layers respond to a bounce

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.