Responsive design Code (TIPS)

Source: Internet
Author: User

1. Media queries, including examples that will help you quickly start your own multi-screen site development.

2. The top 5 functions (width, height, device-width, device-height, and orientation) are the most useful.

3. Provide different designs for mobile phones, tablets and desktop computers

4. Adding a viewport label with these settings <meta> will ensure that your smartphone and tablet comply with the width setting in your media query. In addition, setting the initial value to 1 also ensure that the iphone, ipad, and pod touch apply width settings correctly across the landscape.

5, omit height allows you to reduce the image on a smaller screen without distortion.

6. When designing for mobile devices, a percentage is recommended for font size.

Responsive design Code (TIPS)

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.