Create a mobile page-use viewport metadata

Source: Internet
Author: User

Recently, I started to develop mobile phone pages. The biggest problem I encountered was the size and scaling of my mobile phone pages and my previous PS web pages.

1. Solve the phone page size problem: http://mobile.51cto.com/web-316935.htm thisArticleThis problem can be solved. This is mainly about viewport metadata (I think it is also an important "surface" difference between mobile pages and PC pages ).

2. Solve the mobile phone page scaling problem: according to the above blog, you can solve the mobile phone page scaling problem by adding attributesUser-scalable=No, but it still doesn't work in the UC browser (the most used browser in mobile phones). In the end, only the attributes minimum-scale = 1.0 and maximum-scale = 1.0 are added.

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.