我的phonegap应用程序需要一个自动完成选项,我得到了this sample 。当 iam 使用示例时它工作正常,但是当 iam 尝试在 iphone 模拟器中滚动时它就损坏了(查看图像),我认为它有一些 css 问题,我该如何修复它?我真的被这个问题困住了。谢谢。
Update1: this issue arises when my iscroll started to scroll. Then, my list also starting to scroll (as i shown in below image).
Update2: my jsfiddle here, enter 'a' in products input field - a list will appear, then scroll; you can see the issue.
我的滚动包装:
var testScroll;
function loaded() {
testScroll = new iScroll('wrapper', {
//check js fiddle for more
}
}false);
最佳答案
仅当目标不支持固定区域的基于触摸的滚动时,您才可以尝试使用 iscroll。 (查看更多http://coenraets.org/blog/phonegap-tutorial/)
如果您需要的只是自动完成电话间隙,您最终可能会在上面链接的教程中找到您想要的内容;)
关于jquery - 自动完成 View 损坏(滚动问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19739895/