简体   繁体   English

内容区域无法在Phonegap,Android 2.2中滚动

[英]Content area not scrolling in Phonegap, android 2.2

I am developing a android Phonegap app using version 1.8.1. 我正在使用版本1.8.1开发一个Android Phonegap应用程序。

I am not using JQM , and also do not want to use i-scroll into this project. 我不在使用JQM ,也不想在项目中使用i-scroll

I have divided my pages into three parts: (1) header, (2) content, (3) footer. 我将页面分为三个部分:(1)页眉,(2)内容,(3)页脚。

I want my header and footer remain fixed and content area scrolling (where necessary). 我希望页眉和页脚保持固定,并且内容区域滚动(必要时)。

When I am running my app into android 4.2, everything is working fine - header & footer fixed and content area scrolls. 当我将我的应用程序运行到android 4.2中时,一切工作正常-固定页眉和页脚以及内容区域滚动。

But if I run the application into android 2.2 ... something going wrong. 但是,如果我将应用程序运行到android 2.2中,则会出问题。 Header & footer remain fixed but my content area is not scrolling. 页眉和页脚保持固定,但我的内容区域未滚动。

Do you have any idea, why this difference? 您有什么主意,为什么会有这种区别? Is there any way (like using css3 or html5 or javascript) I can fix this issue? 有什么办法(例如使用css3或html5或javascript)可以解决此问题?

Thank you in advance. 先感谢您。

overflow: auto; 溢出:自动; and overflow: scroll; 和溢出:滚动; are not supported on older android versions. 较早的android版本不支持。 Dont know about 4.2. 不知道4.2。 I founded a workaround for this bug here but it's not fluid as on iOS. 在这里为这个错误建立了一个解决方法,但它在iOS上并不流畅。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM