我使用jquerymobile为android phonegap应用程序。我想创建一个粘贴到屏幕底部的页脚(所以它始终显示),即使您必须在页面上滚动。现在这是工作的一半。当我在模拟器滚动测试下来一个页面上,点击屏幕上(用鼠标)头跳起来(看一个例子:http://tinyurl.com/pdv6nlp和http://tinyurl.com/p6xycr9Jquerymobile页脚移动
我的代码是非常基本的:
<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>
有人可以帮助我
点击'$($。mobile.activePage).trigger('updatelayout');'尝试此修复。 – Omar
你是说在标题的某个地方?当我将它放置在标题中时,这不是任何内容: – user2483081
不,点击事件。 ('click',function(){上面的代码});' – Omar