javascript 使用 jQuery Mobile 的简单滚动元素还是使用其他东西?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5753033/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Simple scroll element with jQuery Mobile or use something else?
提问by doublejosh
I really want to use jQuery mobile, but my first needs are just to control what areas are scrollable and create fixed menus, etc.
我真的很想使用 jQuery mobile,但我的首要需求只是控制哪些区域可滚动并创建固定菜单等。
This takes lots of effort with that toolset, when it's VERY easy with something like iScroll http://cubiq.org/iscroll-4
使用该工具集需要付出很多努力,而使用 iScroll http://cubiq.org/iscroll-4 之类的东西非常容易
Is there an easyway to accomplish a scrollable area or fixed position elements with jQuery mobile?
是否有一种简单的方法可以使用 jQuery mobile 完成可滚动区域或固定位置元素?
采纳答案by Alex
jQuery mobile is way too much setup just to create scrollable areas.
jQuery mobile 的设置太多了,只是为了创建可滚动区域。
iScroll would be what you need. And unlike jQuery mobile, iScroll works on various devices and on the desktop. jQuery mobile, not so much.
iScroll 将是您所需要的。与 jQuery mobile 不同,iScroll 可在各种设备和桌面上运行。jQuery 移动,不是那么多。
And to the person who said that is has a problem with form elements, he is right, but there is an easy fix... iScroll 4 not working with form <select> element iPhone Safari and Android browser.
对于说表单元素有问题的人来说,他是对的,但有一个简单的解决方法...... iScroll 4 不适用于表单 <select> 元素 iPhone Safari 和 Android 浏览器。