问题描述
我有一个 Cocoa webview,里面有一个 web 应用程序.Web 应用程序本身有一个固定的工具栏,弹性滚动,工具栏位于顶部下方,看起来很糟糕.有没有办法禁用弹性/橡皮筋滚动,或者至少让工具栏不随其他内容一起移动?我可以根据需要修改网络应用程序.
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.
简而言之:在 HTML
和 BODY
上禁用 overflow
,添加一个带有 overflow:auto
的包装器页面内容
In short: disable overflow
on HTML
and BODY
, add a wrapper with overflow:auto
around all the page contents
这篇关于在 Lion 中禁用 webview 的橡皮筋滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!