[英]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 我正在处理一个具有div的应用程序,如下所示
HTML: HTML:
<div id="commentDiv">
CSS: CSS:
#commentDiv {height: 458px; overflow: auto;}
In this div, comments are being populated from service. 在此div中,正在从服务中填充评论。 but the scrolling of div does not work in
android
though its working fine in all browsers and other devices like iPhone and iPad. 但是div的滚动无法在
android
尽管它在所有浏览器和其他设备(如iPhone和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
. Android浏览器不支持滚动除
body
以外的其他元素。 In other words: overflow: auto
isn't supported. 换句话说:
overflow: auto
不支持。
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 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 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. 它适用于其他浏览器,如Firefox mobile。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.