簡體   English   中英

android 2.x中的溢出滾動問題

[英]overflow scroll issue in android 2.x

我已經設計了使用jquery mobile的android phonegap應用程序。我需要顯示彈出窗口,並設置了jquery mobile彈出窗口的高度。我給了Overflow:scs in css和popup內容正在android 4.0中滾動,但是在android中沒有滾動2.2。

這是我的代碼

<div align="center">
 <a href="#popupBasic" data-rel="popup">Pop Up</a>
</div>  
<div data-role="popup" id="popupBasic" data-dismissable="false" data-theme="c" data-overlay-theme="c" >
  <p id="popup_content">PhoneGap is a free and open source framework that allows you to create mobile apps using standardized web APIs for the platforms you care about.Easily create apps using the web technologies you know and love: HTML, CSS and JavaScript.From first-timers to long-time veterans, we’ve got your dev needs covered. The developer portal is the place to find guides, documentation and tutorials.This guide describes how to set up your development environment for Cordova and run a sample application.</p>
 </div>

CSS:

.ui-popup {位置:相對; 高度:100像素; 溢出:滾動; }

請指導我。謝謝。

我在為Android開發一個phonegap應用程序時遇到了這個問題。 基本上,溢出:滾動在android 2.2中不起作用; 查看以下錯誤報告:

http://code.google.com/p/android/issues/detail?id=2118
http://code.google.com/p/android/issues/detail?id=2911

我通過使用JavaScript解決方案解決了這個問題: https : //github.com/watusi/jquery-mobile-iscrollview

希望這可以幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM