Responsive Layout Basics

Source: Internet
Author: User

I. What is responsive layout

1. Enable a website to be compatible with devices of different resolutions

2. Give users a better visual experience

Emergence background: Multi-terminal display of mobile internet

Http://www.jser.me

Ii. advantages and disadvantages of responsive design

Advantages: Solve the difference between the equipment display

Disadvantages: Many compatibility code, heavy workload, loading speed is affected;

The original site layout will have an impact, user interpretation may not be accurate

Three, the principle of responsive design

1. Mobile first: In the early design of the page to consider how to display the multi-terminal

2. Progressive enhancement: Give full play to the maximum function of the hardware device

Iv. How to achieve responsive layout

1.css3-media Query (The simplest way)

2. Native JavaScript (high cost, not recommended)

3. Third party open source framework (can support the design of browser responsive layout well)

Responsive Layout Basics

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.