Meat: Adaptive HTML page width

Source: Internet
Author: User

Recently, WAP2.0 found that the simpler the things, the more difficult it is! This is not the case. I found another problem today: After the page is uploaded to the server, the preview page cannot adapt to the mobile phone width, and the page size is always displayed! I can't see any small text!

I asked the company's technical staff and learned how to solve the problem with a simple MEAT statement:

Add the following meta tag to the head of the Web phone wap2.0 webpage. The page is displayed in the original size in the iPhone browser and cannot be scaled.

<Meta name = "viewport" content = "width = device-width, minimum-scale = 1.0, maximum-scale = 1.0; user-scalable = 0;"/>

Where:

Width-width of viewport height-height of viewport initial-scale-initial zoom ratio minimum-scale-minimum scale allowed by users maximum-scale-maximum scale allowed by users user-scalable-whether the user can manually zoom in and out, which has previously ignored the role of meat, only now can we find its strength, cainiao

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.