How to make the mobile browser and Wechat focus not automatically zoom in the page when entering text boxes-silence 286

Source: Internet
Author: User
How to make the browser and focus of a mobile phone do not automatically zoom in on the page when entering a text box-silence 286 Method 1: Disable page Scaling

Add the following code to the head label:

 

Description of content

Width = device-width // The width is equal to the device screen width initial-scale = 1.0 // The initial zoom ratio minimum-scale = 1.0 // The minimum zoom ratio maximum-scale = 1.0 // The maximum scale user-scalable = no // whether the user can scale

2. Set the input font to block

@ Media only screen and (min-device-width: 320px) and (max-device-width: 1024px) {select: focus, textarea: focus, input: focus {font-size: 16px! Important ;}}

The browser may think that the user can see clearly only when the font in the input is greater than or equal to 16 PX.

Document reference

How to make the focus of the Android browser not to automatically zoom in the page in the text input box

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.