【问题标题】:Android webview don't scroll in 2.3 but it work in 3.0 and 4.0Android webview 在 2.3 中不能滚动,但在 3.0 和 4.0 中可以使用
【发布时间】:2013-05-27 18:30:44
【问题描述】:

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

“scrollable-content”在 css 中已经溢出-y = auto(我也尝试过溢出-y=scroll),什么也没有

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

有什么想法吗?

【问题讨论】:

标签: android scroll android-webview


【解决方案1】:

找到解决方案:

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

溢出在 android 2.0 中不起作用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-04
    • 1970-01-01
    相关资源
    最近更新 更多