Responsive layouts-pictures, adaptive and responsive

Source: Internet
Author: User
Tags webp

Responsive layout:

1, keep enough white, but also hardly waste the screen area

2. What to consider: the layout of the @ percent and the EM layout, the spacing varies with the screen width

@ Text Wrapping

@ image needs to be replaced or allowed to zoom

@ Endure a design that's no longer perfect

Self-adapting layouts:

1. At each mutation point, set a maximum width for the content area, and then expand the outer space until it matches to the next mutation point

Search box:

<input type= "Search" >

Advantages:

@ Mobile Browser can change the keyboard displayed

@ Add an icon

@ When the zone is triggered, the search history is displayed

Disadvantages:

@ Change style without permission, match system style

Slider:

Precautions:

@ Slider for good touch

@ Minimum amount of data or number of slides

@ Deferred method to load data

Link:

1, at least * the PX

2. > 8px between targets

Responsive Picture:

1. Srcset Properties--WebKit, Chrome

1 <  src= ""  alt= ""  srcset= "A.jpg 480w, b.jpg 768w"/ >

2. Picture element

1 < Picture>2     <SourceSrcset="">3    <SourceMedia= "(min-width:480px)"Srcset="" >4    <imgsrc=""alt="">5 </ Picture>

3. Chrome supports images in WEBP format

4. <noscript> defines alternative content when the script is not executed

5. Image compression

@png 153kb

@gif 42kb

@jpeg 30kb

@webp 18kb---Support animations, lossy, lossless---chrome, opera

Responsive layouts-pictures, adaptive and responsive

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.