电话:web浏览器禁用平移/缩放WP7? [英] phone:WebBrowser disable pan/zoom wp7?

查看:225
本文介绍了电话:web浏览器禁用平移/缩放WP7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用这code,

 <phone:WebBrowser Foreground="White" Opacity="0" Height="600" Width="430" x:Name="weblink" LoadCompleted="weblink_LoadCompleted" VerticalAlignment="Top"/>

在此code我想在手机禁用的平移/缩放:web浏览器

in this code i want to disable pan/zoom in phone:WebBrowser.

如果有谁知道的想法,请分享在这里。

if anyone know the idea please share here.

感谢。

推荐答案

如果你可以改变HTML,也许你可以添加元数据视窗:
<一href=\"https://developer.mozilla.org/en/Mobile/Viewport_meta_tag\">https://developer.mozilla.org/en/Mobile/Viewport_meta_tag

If you can change the HTML maybe you can add the viewport metadata: https://developer.mozilla.org/en/Mobile/Viewport_meta_tag

我用它在我的WP7的应用程序(堆栈的Instapaper的)来显示网页具有特定宽度,这样的阅读体验不是通过缩放/平移阻碍

I use it in my WP7 app (Stacks for Instapaper) to display web pages with specific width so the reading experience is not hampered by zooming/panning

我用这个值:

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />

这篇关于电话:web浏览器禁用平移/缩放WP7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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