JQuery Mobile 固定工具栏和页脚栏消失了? [英] JQuery Mobile Fixed Toolbar and Footer Bar disappears?

查看:26
本文介绍了JQuery Mobile 固定工具栏和页脚栏消失了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 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?

谢谢

推荐答案

data-tap-toggle="false" 添加到元素

将此添加到 Javascript

Add this to Javascript

$("[data-role=header]").toolbar({ tapToggle: false });

旧版本的 jQuery 使用 .fixedtoolbar().

Older versions of jQuery use .fixedtoolbar().

jQuery Mobile 文档 - 事件

这篇关于JQuery Mobile 固定工具栏和页脚栏消失了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆