简体   繁体   中英

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

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?

Find the solution:

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

overflown do not work in android 2.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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