![](/img/trans.png)
[英]jQuery mobile phonegap flicking and jumping data-role=“content” when sliding from page to another
[英]weird scroll in jquery mobile data-role page or content
我有一個jQuery的移動頁面如下
<div id="main_template_wrapper">
<div data-role="header" class="header" data-position="fixed">
<h1>中文</h1>
</div><!-- /header -->
<div data-role="content" class="content">
<a href='#userprofile' data-role="button">userprofile</a>
<a href='#login' data-role="button">login</a>
<a href='#tutorial/1/1' data-role="button">tutorial</a>
<a href='./spec.html' data-role="button">Jasming</a>
</div><!-- /content -->
<div data-role="footer" class="footer" data-position="fixed">
</div><!-- /footer -->
</div>
當我在ios設備上看到此頁面時,總是會在右側出現一個怪異的滾動條,您可以在其中滾動一點,原因以及解決方法。
好。 經過一些修復后,似乎在index.html視口中,我設置了height = device-height,這導致了此錯誤,device-height比屏幕看起來更長,在我刪除高度后,滾動條消失了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.