有没有一种方法来禁用在web视图输入字段缩放功能? [英] Is there a way to disable the zoom feature on input fields in webview?
本文介绍了有没有一种方法来禁用在web视图输入字段缩放功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户点击输入字段或文本域,应用变焦放大。 有一个简单的方法来禁用它?
When a user clicks in an input field or textarea, the application zooms in. Is there a simple way to disable it?
目前有meta标签:
meta name="viewport" content="width=device-width; height=device-height; initial-scale=1.0; maximum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi;"
一切看起来不错,直到我看着它在设备上是的Android 2.2 具体的 HTC EVO 4G
推荐答案
我搞砸周围的这个很多。
I messed around with this alot.
您必须有不同的解决方案不同的屏幕大小和电话,做服务器端。
You have to have different solutions for different screen sizes and phones, done serverside.
这适用于一个HTC渴望例如:
<meta content='True' name='HandheldFriendly' />
<meta content='width=640px; initial-scale=0.50; maximum-scale=0.50;minimum-scale=0.50;' name='viewport' />
<meta name="viewport" content="width=640px" />
这是一个iphone:
<meta name="viewport" content="width=640px,user-scalable=0" />
这篇关于有没有一种方法来禁用在web视图输入字段缩放功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文