有没有一种方法来禁用在web视图输入字段缩放功能?缩放、字段、视图、方法来

由网友(捧一罐野樱)分享简介:当用户点击输入​​字段或文本域,应用变焦放大。有一个简单的方法来禁用它?When a user clicks in an input field or textarea, the application zooms in.Is there a simple way to disable it?目前有meta标签...

当用户点击输入​​字段或文本域,应用变焦放大。 有一个简单的方法来禁用它?

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;"

一切看起来不错,直到我看着它在设备上是的Andr​​oid 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" />
阅读全文

相关推荐

最新文章