CSS self-adapting problem

Source: Internet
Author: User

1. Picture Adaptive


srcset= "App-logo.png 175w,app-logo-double.png 365w"
Sizes= "(max-width:640px) 365px,175px"
/>

Srcset: List of resource files
Sizes: (max-width:640px) 365px,175px width not exceeding 640px use 365px size picture, the rest of the case uses 175px size picture.

2. Interface self-adapting

@media screen and (min-width:1280px) {} with      a minimum resolution of 1280px
@media only screen and (max-width:1280px) and (min-width:640px)    resolution up to 1280px with a minimum of 640px





CSS self-adapting problem

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.