我使用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/