【问题标题】:How to use with fixed footer positioning in WP7 ·如何在 WP7 中使用固定页脚定位 ·
【发布时间】:2013-08-27 17:59:20
【问题描述】:

如何使用 Jquery-mobile 在 WP7 中固定页脚

 <div data-role="footer"  data-position="fixed">
                    <h1>Footer</h1>
  </div>

【问题讨论】:

    标签: javascript jquery css windows-phone-7 jquery-mobile


    【解决方案1】:

    WP7 不支持 position:fixed 所以工具栏应该只随页面滚动,除非你选择包含可选的 polyfill,这是一个修复:

    https://github.com/filamentgroup/jQuery-Mobile-FixedToolbar-Legacy-Polyfill

    【讨论】:

    • 我有这个错误:“对象不支持属性或方法'fixedToolbar'”$(".ui-footer-fixed").fixedToolbar("updatePosition");
    • 那是因为 WP7 不支持 position:fixed。您尝试过修复吗?
    • 等一下,您是否包含了附加链接中的 js 和 css 文件?找不到函数fixedToolbar的地方会出现这个错误。
    • 在 jQuery Mobile 被加载后加载到你的 HTML HEAD 中。
    • 这是我的 HEAD &lt;link rel="stylesheet" href="css/them.min.css" /&gt; &lt;link rel="stylesheet" href="css/jquery.mobile.structure-1.2.0.css" /&gt; &lt;link rel="stylesheet" href="css/jquery.mobile.fixedToolbar.polyfill.css" /&gt; &lt;link rel="stylesheet" href="css/style.css" /&gt; &lt;script type="text/javascript" src="js/libs/jquery-1.7.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="js/libs/jquery.mobile-1.2.0.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="js/libs/jquery.mobile.fixedToolbar.polyfill.js"&gt;&lt;/script&gt;
    猜你喜欢
    • 2018-11-05
    • 1970-01-01
    • 1970-01-01
    • 2014-03-04
    • 2011-07-08
    • 2018-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多