Android webview don't scroll in 2.3 but it work in 3.0 and 4.0

一曲冷凌霜 提交于 2019-12-22 17:33:53

问题


I have a problem with a webview.

Its load an url similar to this:

<html>
   <head><meta name="viewport" content="width=device-width"/></head>
   <body>
     <div id="header"></div>
     <div id="scrollable-content"><!--a lot of stuff inside here--></div>
     <div id="footer"></div>
   </body>
</html>

"scrollable-content" has overflown-y = auto in css(i also tried overflown-y=scroll) and nothing

I cant scroll in android 2.3, for what i read it is becouse of the meta viewport. But i cant take it off becouse it is beeing used for responsive design

Any ideas?


回答1:


Find the solution:

http://www.seabreezecomputers.com/tips/scroll-div.htm

overflown do not work in android 2.0



来源:https://stackoverflow.com/questions/16778697/android-webview-dont-scroll-in-2-3-but-it-work-in-3-0-and-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!