Android webview 在 2.3 中不滚动,但在 3.0 和 4.0 中工作

标签 android scroll android-webview

我的 WebView 有问题。

它加载一个类似这样的 url:

<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>

“可滚动内容”在 css 中有 overflown-y = auto(我也尝试过 overflown-y=scroll)但什么也没有

我无法在 android 2.3 中滚动,因为我读到的是元视口(viewport)。但我不能把它取下来,因为它被用于响应式设计

有什么想法吗?

最佳答案

找到解决方案:

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

overflown 在 android 2.0 中不起作用

关于Android webview 在 2.3 中不滚动,但在 3.0 和 4.0 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16778697/

相关文章:

android - 添加 MotionEvent 后 WebView TextSelection 消失了

android - 获取安卓键盘高度

Android Studio 找不到任何与 gradle 匹配的版本

html - 可滚动的 tbody 不占用所有可用宽度

jquery - 如何修复 displaytag 表中的列标题

java - WebView 自动填充表单

android - Cordova 自适应图标导致构建失败 : The "path" argument must be of type string

android - 设备 ID 给出空值

ios - UITableView:滚动加载更多 Youtube 项目

android - 为什么双指缩放在我的 Android WebView 中不起作用?