1

我需要在我的应用程序中禁用 Web 视图缩放属性。是否可以启用/禁用缩放控制?

4

1 回答 1

2

对的,这是可能的。将此代码添加到您的 html 页面:

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

<meta name="viewport" content="width=device-width" />
</head> 

要启用缩放,只需创建同一页面的副本但没有元标记:

<head>

</head> 

然后在网页视图中加载页面。

于 2013-05-07T22:27:19.947 回答