Opera:如何隐藏滚动条? (Firefox 和 IE8 中没有)

发布于 2024-08-25 08:08:54 字数 123 浏览 4 评论 0原文

我正在不同的浏览器中测试我的页面。

Opera 在页面上放置一个垂直滚动条。我添加了一个溢出:隐藏到div(在尝试Opera之后),但滚动条仍然存在。我如何摆脱它(您不需要滚动条来查看页面)。

谢谢

I'm testing my pages in different browsers.

Opera puts a vertical scroll bar on a page. I added an overflow:hidden to the div (after trying Opera), but the scroll bar is still there. How do I get rid of it (you don't need the scroll bar to view the page).

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

苦行僧 2024-09-01 08:08:54

尝试以下

html, body { 
  overflow: auto;
}

overflow:hidden 将使滚动条消失,即使窗口大小调整也是如此。

Try following

html, body { 
  overflow: auto;
}

overflow: hidden will make the scrollbars disappear even if the window is resized.

野鹿林 2024-09-01 08:08:54

要关闭默认滚动条,请进入“设置”→“首选项”→“高级”→“浏览”,停用“显示滚动条”。

To turn off the default scroll bar go in Settings → Preferences → Advanced → Browsing, deactivate “Show scrollbars”.

十秒萌定你 2024-09-01 08:08:54

但遗憾的是,您无法摆脱其中一个滚动条。 Mac Opera 9.20 中必须同时具备这两种功能……在我看来,Opera 是垃圾,不要使用它,也不要为它设计。

sadly though, you can't get rid of 1 of the scroll bars. You must have both in a Mac Opera 9.20 .... IMO Opera is garbage, dont use it and dont design for it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文