本文介绍了最大化jQuery Mobile中的div [data-role = content]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人真的成功做到了这一点,似乎在线上尝试的次数很多,但是没有人有明确的解决方案.我尝试了很多人建议的插件,但没有任何效果.

Has anyone actually succeeded in doing this it seems like there are so many attempts on line but no one has a definite solution. I've tried plugins that a lot of people suggested but nothing is working.

我只想让Google Map完整尺寸(除了页眉和页脚),然后在另一个页面上让div进行相同操作

I just want to have a Google Map go full dimensions (apart from header and footer) and then on another page I want a div to do the same

推荐答案

在此期间,我建议使用iScroll [CSS位置固定:仅适用于iOS5中的页眉和页脚]

In the meantime I would recommend to use iScroll [with CSS position:fixed; for header&footer in iOS5 only]

在iScroll中,您只需将内容包装到包装器中即可.滚动条类,其余的由脚本完成.这是主页 http://cubiq.org/iscroll-4 ,下面是一些代码:

In iScroll you just wrap the content into a wrapper & scroller class, the rest is done by the script. Here's the homepage http://cubiq.org/iscroll-4 and here's some code:

<div id="content" data-role="content">
     <div id="wrapper">
         <div id="scroller">
           your content here.
         </div>
     </div>
</div>

对于iScroll初始化,请使用cubiq网站上提供的文档.

For iScroll initialization use the documentation provided on cubiq's site.

zY

这篇关于最大化jQuery Mobile中的div [data-role = content]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 06:30