在狮子的webview中禁用橡皮筋滚动 [英] Disable rubber-band scrolling for webview in lion

查看:210
本文介绍了在狮子的webview中禁用橡皮筋滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Cocoa webview,里面有一个web应用程序。该Web应用程序本身具有固定的工具栏,并且弹性滚动,并且工具栏位于顶部下方,看起来很糟糕。有没有办法禁用弹性/橡皮筋滚动,或至少让工具栏不随其他内容一起移动?我可以像neede一样修改web应用程序。 可能这篇文章会帮助你。 / p>

简而言之:在 HTML 和<$上禁用溢出 c $ c> BODY ,在所有页面内容的周围添加一个包含 overflow:auto 的封装

I have a Cocoa webview, with a web application in it. The web application has a fixed toolbar itself, and with the elastic scrolling, and the toolbar coming below the top, it looks bad. Is there a way to disable the elastic/rubber-band scrolling, or at least keep the toolbar from moving with the rest of the content? I can modify the web app as much as neede.

解决方案

Maybe this article would help you.

In short: disable overflow on HTML and BODY, add a wrapper with overflow:auto around all the page contents

这篇关于在狮子的webview中禁用橡皮筋滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆