在 Windows Mobile 7 上防止文本框焦点上的屏幕缩放
在 Windows Mobile 7 上,当用户在输入某些数据之前单击文本框时,屏幕通常会放大该框并拉起键盘。
有没有办法阻止变焦?或者这是手机本身的设置?
On Windows Mobile 7, when a user clicks on a text box before entering some data - the screen usually zooms in to the box and pulls up the keyboard.
Is there a way to prevent the zoom? Or is this a setting on the phone itself?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
谢谢先生 - 但我需要的答案是包含一个视口元标记,将“用户可扩展”参数定义为“否”。任何正在努力解决移动设备跨浏览器兼容性问题的人都应该查看此页面 - 今天对我有很大帮助。
http://davidbcalhoun.com/2010/viewport-metatag
Thanks gents - but the answer I needed was to include a viewport meta tag that defined the 'user-scalable' parameter as 'no'. Anyone grappling with mobile device cross browser compatibility issues should check this page out - a huge help to me today.
http://davidbcalhoun.com/2010/viewport-metatag
这通常发生在网络浏览器中,因为单击时文本框可能很小。我同意这可能很烦人。然而,它不会发生在本机应用程序中。
This usually happens in the web browser as the textbox could be tiny when it is clicked. I agree it can be annoying. It does not happen in native apps however.
如果您单击应用程序中的文本框,并且它位于键盘所在的区域下方。
当文本框获得焦点时,这是正常行为。当屏幕键盘出现时,您的内容正在向上移动。
如果您希望内容保留在原来的位置,您可以尝试使用 Coding4fun 控件(在此处下载示例: http://coding4fun.codeplex.com/SourceControl/list/changesets)。运行测试应用程序,转到 Promts ->基本输入或高级输入。
if you click on a textbox in the app, and it is under the area where the keyboard would be.
It is normal behavior when text box is focused. Your content is moving up when on screen keyboard is appearing.
if you want your content to stay on it's place you can try to use Coding4fun controls(download with sample here: http://coding4fun.codeplex.com/SourceControl/list/changesets). Run Test Application, go to Promts -> Basic input or Advanced input.