jQuery Mobile固定工具栏和页脚栏消失了吗? [英] JQuery Mobile Fixed Toolbar and Footer Bar disappears?
问题描述
我正在使用JQuery Mobile 4.1a版本并使用:
I am using JQuery Mobile version 4.1a and using:
data-position="fixed"
在页眉和页脚上.
当我滚动内容时,它消失了,然后再次出现.
When I scroll the content it disappears and then appears again.
有什么办法让它停留在它的位置而不会在每次滚动页面时消失吗?
Is there any way to make it stay in it's position and not disappear everytime I scroll the page?
谢谢
推荐答案
我找到了解决方案.我已经在我的项目中对其进行了测试,它的工作原理就像一个魅力.
I found a solution. I have tested it on my project and it works like a charm.
此处是URL: https://github.com/yappo/javascript-jquery.mobile.iscroll
这与AppML使用的JS解决方案相同.
It's the same JS solution used by: AppML.
此外,这是一个演示:
http://yappo.github.com/projects/jquery.mobile.iscroll/livedemo .html
p.s:在我的项目上比在他们的实际演示上效果更好,所以值得一试.
p.s: It works better on my project than on their actual demo so it's worth a try.
享受:o)
这篇关于jQuery Mobile固定工具栏和页脚栏消失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!