android - android 2.x 中的溢出滚动问题

标签 android cordova jquery-mobile popup

我使用jquery mobile设计了android Phonegap应用程序。我需要显示弹出窗口,并设置了jquery mobile弹出窗口的高度。我已经给出了Overflow:css中的滚动,并且弹出内容在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 { position:relative; 高度:100px; 溢出:滚动; }

请指导我。提前致谢。

最佳答案

我在为 Android 开发 PhoneGap 应用程序时遇到了这个问题。基本上,overflow:scroll在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

希望这有帮助!

关于android - android 2.x 中的溢出滚动问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13659882/

相关文章:

Android去除导航菜单项突出显示

Android MediaPlayer 的 getDuration() 方法从元数据而不是实际媒体长度中获取值

jquery - Phonegap 和 jQuery Mobile,如何更改内容而不是页面的 html?

jquery - 如何使用 jquery mobile 在多个页面中使用相同的导航栏?

javascript - 在 jQuery Mobile 上选择 anchor 标记

php - jquery mobile 不会触发 pageinit 或 ready

android - 如何从另一个类中访问 Bean 的存储值

android - 如何使用Canvas绘制大写字母并用手指填充该字母?

ios - xcode: 错误 ITMS-90022: "Missing required icon file.."

javascript - 查找 ionic 代码中的错误