jQuery Mobile静态页脚导航栏 [英] jquery mobile static footer navbar

查看:66
本文介绍了jQuery Mobile静态页脚导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找到了这个答案在Jquery mobile中,在页面内单击时,页眉和页脚始终隐藏吗?

我唯一的区别是我没有data-fullscreen ="true"但有一个data-cache ="never".

The only difference that I have is I do NOT have data-fullscreen="true" but have a data-cache="never".

页脚栏不断淡入和淡出.只希望页脚导航栏位于屏幕底部而不会褪色.

footer bar keeps fading in and out. Just want footer navbar to be on bottom of screen without fades.

<div data-role="page" data-cache="never" id="mainPage">
<script>
$('#mainPage').live('pagecreate', function (event) {

    $.fixedToolbars.setTouchToggleEnabled(false);

});
</script>
....header stuff
<div data-role="content" id="mainContent">
....
</div>
<div data-role="footer" data-theme="a" data-position="fixed">
  <div data-role="navbar">
    <ul>
      ... 4 li's
    </ul>
  </div>
</div>
</div>

编辑

我们在这里.这是怎么做的? http://jquerymobile .com/test/experiments/scrollview/#../../docs/toolbars/footer-persist-a.html

EDIT

Here we go. How is this done? http://jquerymobile.com/test/experiments/scrollview/#../../docs/toolbars/footer-persist-a.html

页眉立即加载,但页脚不加载.想让我的页脚像页面的页眉一样显示.

Header loads immediately but not footer. Would like for my footer to act like the header of that page.

推荐答案

此问题已在jQueryMobile 1.1 rc1中修复.请参见此链接

This is fixed in jQueryMobile 1.1 rc1. See this link

在页脚上使用 data-tap-toggle ="false" .

这篇关于jQuery Mobile静态页脚导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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