屏幕滚动打字时在Android的PhoneGap应用程序中使用JQTouch?应用程序、屏幕、PhoneGap、Android

2023-09-08 09:46:48 作者:斩七情毁六欲.

我一直在使用JQtouch,jQuery和PhoneGap的开发的应用。当您在窗体的字段中键入,整个页面向上或每次下来,你输入的字符。我已经到处去寻找解决方案,但不能找到一个。有一个类似的问题在这里: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).