我如何“禁用”缩放移动网页? [英] How can I "disable" zoom on a mobile web page?

查看:130
本文介绍了我如何“禁用”缩放移动网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



但是(至少在我的Android手机上),每次点击对于某些输入,整个页面在那里放大,遮挡页面的其余部分。

解决方案

这应该是你需要的一切

 < meta content ='width = device-width,initial-scale = 1.0,maximum-scale = 1.0,user-scalable = 0'name ='viewport'/> 


I am creating a mobile web page that is basically a big form with several text inputs.

However (at least on my Android cellphone), every time I click on some input the whole page zooms there, obscuring the rest of the page. Is there some HTML or CSS command to disable this kind of zoom on moble web pages?

解决方案

This should be everything you need

<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />

这篇关于我如何“禁用”缩放移动网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆