jquery移动静态页脚导航栏

pca*_*asa 4 jquery jquery-mobile

发现这个答案在Jquery mobile中,当页面内部点击时,页眉和页脚总是隐藏起来?

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

页脚栏不断淡入淡出.只是希望页脚导航栏位于屏幕底部而不会消失.

<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>
Run Code Online (Sandbox Code Playgroud)

编辑

开始了.这是怎么做到的? http://jquerymobile.com/test/experiments/scrollview/#../../docs/toolbars/footer-persist-a.html

标题会立即加载,但不会加载页脚.希望我的页脚像该页面的标题一样.

Sim*_*ane 10

这在jQueryMobile 1.1 rc1中得到修复.看到这个链接

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