屏幕滚动打字时在Android的PhoneGap应用程序中使用JQTouch? [英] Screen Scrolls while typing Using JQTouch in an Android PhoneGap app?

查看:106
本文介绍了屏幕滚动打字时在Android的PhoneGap应用程序中使用JQTouch?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用JQtouch,jQuery和PhoneGap的开发的应用。当您在窗体的字段中键入,整个页面向上或每次下来,你输入的字符。我已经到处去寻找解决方案,但不能找到一个。
有一个类似的问题在这里:<一href=\"https://github.com/jquery/jquery-mobile/issues/638\">https://github.com/jquery/jquery-mobile/issues/638
但他的解决方案并没有解决我的问题。

I have made an app using JQtouch, Jquery, and PhoneGap. When you type in a form's field, the entire page scrolls up or down each time you enter a character. I have searched everywhere for solutions but cannot find one. There was a similar problem here: https://github.com/jquery/jquery-mobile/issues/638 but his solution did not solve my issue.

有没有人有一个想法,为什么该网页将上下滚动,在一个文本框添加的每个角色?因为页面是如此之小,上下滚动很快使它很烦人。

Does anyone have an idea why the page would scroll up and down with each added character in a textbox? Because the page is so small, it scrolls up and down quickly making it very annoying.

推荐答案

把你的文件中有如下CSS其他所有CSS样式后:

Put the following CSS in your file after all other CSS styles:

    body {
        -webkit-perspective: none;
        -webkit-transform-style: flat;
    }
    body > * {
        -webkit-backface-visibility: visible;
        -webkit-transform: none;
    }

这应该解决您的问题(至少它为我做的)。

This should solve your problem (at least it did for me).

这篇关于屏幕滚动打字时在Android的PhoneGap应用程序中使用JQTouch?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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