简体   繁体   English

我的滚动功能在samsung android Mobile中不起作用,但在所有浏览器和设备上都能正常工作?

[英]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.

相关问题 画布在移动设备上不起作用,在桌面上工作正常 - Drawing canvas not working on mobile devices, works fine on desktop 滑动在IE中不起作用。 但它在所有其他浏览器中都可以正常工作 - Sliding is not working in IE . But it works fine in all other browsers jQuery .load在IE上不起作用(在所有其他浏览器上正常工作) - jQuery .load not working on IE (Works fine on all other browsers) React应用正常运行,但不能在移动浏览器上运行 - React app works fine but not on mobile browsers jQuery Mobile:changepage幻灯片过渡在桌面上可以正常运行,但在Android设备上不能正常运行 - jQuery Mobile: changepage slide transition working fine on a desktop but not on Android devices React/HTML/CSS 按钮文本不以移动为中心; 在所有桌面浏览器上都能正常工作 - React/HTML/CSS button text not centering on mobile; works fine on all desktop browsers 所有移动设备(浏览器)的锁定屏幕方向 - Lock screen orientation for all mobile devices (browsers) 地理定位代码适用于桌面浏览器,但不适用于移动设备 - Geolocation code working on desktop browsers but not on mobile devices 在Android设备的移动浏览器上自动打开组合框 - auto open combobox on mobile browsers for Android devices 在Android Mobile上滚动无法正常工作 - Scrolling on Android Mobile not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM