jquery ui 选择菜单不会在 Android 浏览器中滚动
我正在开发一个使用 jquery UI 选择菜单 的移动应用程序。
它效果很好,但问题是我有几个下拉菜单太长而无法容纳。当我在 PC 上查看时,浮动 div 是可滚动的 - 这是所需的行为。然而,在 Android 设备上,div 不可滚动。
我不知道如何让它们在移动设备上滚动。我已经在使用 ios 4 滚动修复。
有什么想法可以让 div 在移动设备上滚动吗?
I am working on a mobile application that uses the jquery UI select menu.
It works great, but the problem is that I have a couple drop downs that are too long to fit. When I look on my PC, the floating divs are scrollable - the desired behavior. On the android device, however, the divs are not scrollable.
I'm not sure how to go about making them scroll on the mobile device. I'm already using an ios 4 scroll fix.
Any ideas how to make the div scrollable on the mobile device?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直使用这个脚本: http://cubiq.org/iscroll-4 来支持内部滚动当设备不支持时。它可以帮助你。其他解决方案是检测该 div 上的触摸移动,并根据触摸移动的方向和速度以编程方式滚动 div。但你可能会更好地使用 iscroll-4,它使用起来更快并且已经具有跨浏览器支持。
I've always used this script: http://cubiq.org/iscroll-4 to support internal scrolling when the device doesn't support it. It could help you. Other solution would be to detect touch movement on that div, and, scroll the div programatically, depending on direction and speed of touch move. But you'd probably be better using iscroll-4, it's faster to use it and already has cross browser support.