【问题标题】:JQuery Mobile Windows phone 8 fixed footerJQuery Mobile Windows phone 8 固定页脚
【发布时间】:2013-09-01 10:11:33
【问题描述】:

我有一个带有 jquery mobile 的 phonegap windows phone 8 应用程序用于样式设置。我正在使用固定页脚进行导航。然而,页脚从手机底部浮动几个像素。

我已经完成了应用程序的 android/Ios 版本。我使用 Adob​​e Phonegap 构建来构建我的应用程序。 Android/IOS 版本运行良好。但现在我正在尝试测试该应用程序的 Windows Phone 8 版本,并且我已经在手机浏览器中进行了测试,并且它在 Windows 8 手机、ios 和 android 中都能完美运行。但我构建了 windows phone 应用程序 (app.xap) 并安装在 windows phone 中,并且页脚未按预期定位,从底部上方有间隙。

请帮帮我。任何帮助将不胜感激。谢谢 =)

  • <div data-role="page" data-theme="a" id="page_Login">
            <div data-role="header" data-theme="a" class="okn_applicationTitleLogo">
    
                <img src="Content/mobile/themes/default/images/logo.png" />
            </div>
    
            <div data-role="content" data-theme="a" id="loginpage" >
                <div class="okn_contentContainer">
                    Login
                <div data-role="fieldcontain" class="ui-hide-label">
                    <label for="txtLogin">Username</label>
                    <input type="email" name="txtLogin" id="txtLogin" data-bind="value: Username" placeholder="Username" />
                </div>
                    <div data-role="fieldcontain" class="ui-hide-label">
                        <label for="txtPassword">Password</label>
                        <input type="password" name="txtPassword" id="txtPassword" data-bind="value: Password" placeholder="Password" />
                    </div>
                    <div data-role="fieldcontain">
                        <label>
                            <input type="checkbox" name="chkRememberLogin" data-bind="checked: RememberMe " />
                            Remember me</label>
                    </div>
    
    
    
            </div>
            <div data-role="footer" data-id="footer_Main" id="firstFooter"    data-theme="a"  >
                <h4>&copy; <span class="footer_copyrightYear">2000</span>  <span class="footer_version"></span></h4>
            </div>
    
       </div>
        </div>
    

  • 【问题讨论】:

    • 对于它的价值,我正在经历同样的事情。我将 jQuery Mobile 1.3.2 与 jQuery 2.0.3 一起使用。 Phonegap 版本为 3.1.0-0.15.0。

    标签: android jquery windows-phone-8


    【解决方案1】:

    像这样更改页脚 div:

     <div data-role="footer" data-position="fixed" style="position: absolute">
    

    如果您愿意,也可以直接在 jquery 移动 CSS 中添加绝对位置。

    【讨论】:

      猜你喜欢
      • 2012-04-26
      • 2011-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-21
      • 1970-01-01
      • 2023-04-09
      • 2012-05-01
      相关资源
      最近更新 更多