cordova - Jquerymobile/Phonegap/iOS 页脚导航栏在第一次滚动时未修复

标签 cordova jquery-mobile

我有一个多页 Jquerymobile 1.2 文件。当我导航到需要滚动的页面时,页脚不再固定,而是跳转到第一个滚动条上。当我松开手指时,页脚跳回原位。当我在多页文档中的任何其他页面上重复该过程并进行后续滚动时,这种效果不再发生。

这是页脚的代码 - 用于多页文档中的所有页面(请注意,它也链接到几个外部文件):

<div data-role="footer" class="nav-rp" data-theme="a" data-position="fixed" data-id="myfooter">
    <div data-role="navbar" class="nav-rp" >
        <ul>
            <li><a rel="external" href="index.html#index"  class="icon-index" data-icon="custom">Home</a></li>
            <li><a rel="external" href="index.html#route-1" class="icon-route" data-icon="custom">Route</a></li>
            <li><a rel="external" href="gallery.html" class="icon-gallery" data-icon="custom">Gallery</a></li>
            <li><a href="businesses.html" rel="external" class="icon-business" data-icon="custom">Business</a></li>
        </ul>
    </div>
</div>

如有任何指导,我们将不胜感激。

最佳答案

我想我已经解决了我的问题 - 它与顶部的元视口(viewport)标签有关。我添加了 height=device-height ,这似乎可以解决问题。

关于cordova - Jquerymobile/Phonegap/iOS 页脚导航栏在第一次滚动时未修复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13271082/

相关文章:

javascript - framework 7 swipebox 无法在 cordova android 应用程序中显示附加图像

html - 在 WP7 中使用 HTML、CSS 和 Jquery 或 Javascript

css - 如何将 css 类添加到 JQuery Mobile Select Option 的文本中?

cordova - 是否可以使用 PhoneGap/Cordova 进行屏幕锁定?

android - 如何使用白名单配置 Cordova-android 4.0

javascript - 将 AWS 开发工具包与网络 worker 一起使用

jquery - 按钮与输入和标签在同一行

android - 错误: No resource found that matches the given name (at 'dial ogCornerRadius' with value '?android:attr/dialogCornerRadius' )

jquery - 什么时候应该使用 jQuery Mobile?正确的 "Use Case"是什么?

复选框选中事件的javascript函数