如何禁用IE11浏览器控件缩放 [英] How to disable IE11 WebBrowser control scaling

查看:3949
本文介绍了如何禁用IE11浏览器控件缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经花了2天尝试解决这个问题,最后,我问你,亲爱的StackoverFlowers。 我正在开发的C#4.5的27'多点触控屏的应用程序,我需要在其中一个WebBrowser元素。用户只能够通过Y轴平移页面,点击项目。 我禁用的文本选择,项目拖动使用JS;导航使用C#;但不能让它没有可扩展性。

I have spent 2 days trying to solve this problem, and finally, I ask you, dear StackoverFlowers. I am developing an application for 27' multi-touch screens on C# 4.5 and I need a WebBrowser element within it. A user should only be able to pan the page by Y-axis and click on items. I disabled text selection, items dragging using JS; navigation using C#; but can't make it not scalable.

我安装IE11并打开它使用注册表项(FEATURE_BROWSER_EMULATION)。

I installed IE11 and turned it on using registry key (FEATURE_BROWSER_EMULATION).

我的HTML文件包括:

My HTML-file contains:

<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">

我的CSS文件包括:

My CSS-file contains:

*
{
    -ms-user-select: none;
    -ms-content-zooming: none;
    touch-action: pan-y;
}    

但是,当我掐用两个手指来放大它还是缩小。 无法摆脱这恼人的功能。

But when I pinch with two fingers to zoom it still zooms. Can't get rid of this annoying function.

如何使用任何JS,jQuery的,IE11,来禁用它。NET的Windows工具?

How to disable it using any of JS, jQuery, IE11, .NET, Windows instruments?

P.S。我使用的是Windows 8并没有禁止多点触摸手势,在控制面板的鼠标设置像在Windows 7中:其中;

P.S. I am using Windows 8 and there is no "disable multi-touch gestures" in Mouse settings of control panel like in Windows 7 :<

推荐答案

许多不同的方法并没有给出任何相应的结果。

Many different approaches didn't give any appropriate results.

解决的办法是以下内容:卸载Windows 8,安装Windows 7,并禁用多点触摸手势。

The solution was the following: uninstall Windows 8, install Windows 7 and disable multi-touch gestures.

这篇关于如何禁用IE11浏览器控件缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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