简体   繁体   中英

My scrolling is not working in samsung android Mobile but works fine in all browsers and devices?

I am working on an application in which i have div as shown below

HTML:

<div id="commentDiv">

CSS:

#commentDiv {height: 458px; overflow: auto;}

In this div, comments are being populated from service. but the scrolling of div does not work in android though its working fine in all browsers and other devices like iPhone and iPad.

can any body solve this problem please its urgent.

No you can't. The Android browser does not support scrolling of elements other than body . In other words: overflow: auto isn't supported.

This has been filed as a bug a few years ago and it still isn't fixed.

http://code.google.com/p/android/issues/detail?id=6864&q=scroll%20android%20inner&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

or

http://code.google.com/p/android/issues/detail?id=2118&q=scroll%20android%20inner&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

It works in alternative browsers, like Firefox mobile, though.

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