小编use*_*081的帖子

Jquerymobile页脚移动

我使用jquerymobile作为android phonegap应用程序.我想创建一个粘贴在屏幕底部的页脚(所以它一直显示),即使你必须在页面上滚动.现在这工作了一半.当我在模拟器中测试它时,向下滚动页面并单击屏幕(使用鼠标),标题会跳起来(参见示例:http://tinyurl.com/pdv6nlphttp://tinyurl.com/p6xycr9

我的代码非常基础:

<div data-role="page" id="blog" style="background-image:url(img/bg_hdpi.png); background-repeat:no-repeat; background-position:top center; background-attachment:scroll; background-color:#d7d8d8;">


<div data-role="content">   
    <div id="contentTXT">
        <div id="outputblog"></div>
        <img src="img/spacer.gif" height="60" width="100">
    </div>  
</div><!-- /content -->

<div data-role="footer" data-position="fixed" >
    <div style="float:left;"><a href="#" onclick="history.back(); return false">back</a></div>
    <div style="float:right;"><a href="#foo" data-transition="flip">home</a></div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)

有人能帮我吗?

android jquery-mobile cordova

1
推荐指数
2
解决办法
2346
查看次数

标签 统计

android ×1

cordova ×1

jquery-mobile ×1