Html 谷歌浏览器:垂直滚动条在某些网页上消失,可能是因为工具栏很奇怪

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12560797/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 02:59:49  来源:igfitidea点击:

Google Chrome: Vertical scrollbar disappears on some web pages, maybe due to a strange toolbar

htmlgoogle-chrome

提问by Carsten Gehling

One of my customers have trouble viewing some of the pages on our website. Specifically it is the vertical scrollbar, that disappears on some pages.

我的一位客户在查看我们网站上的某些页面时遇到问题。特别是垂直滚动条,在某些页面上消失了。

She is using Google Chrome, and as the following screenshots will show, Chrome also has a strange toolbar.

她正在使用谷歌浏览器,正如下面的截图所示,Chrome 也有一个奇怪的工具栏。

On this first image, there are no problem with scrolling

在这第一张图片上,滚动没有问题

http://i45.tinypic.com/3444bqe.png

http://i45.tinypic.com/3444bqe.png

On the next, the scrollbar has disappeared although there is plenty of content on the page.

接下来,虽然页面上有很多内容,但滚动条消失了。

http://i47.tinypic.com/125qdlv.png

http://i47.tinypic.com/125qdlv.png

I have tried to reproduce the error on my own machine with the same Chrome version, but it was not possible. So I suspect the strange toolbar to be the culprit.

我试图在我自己的机器上用相同的 Chrome 版本重现错误,但这是不可能的。所以我怀疑奇怪的工具栏是罪魁祸首。

Does anybody know which extension gives this bar?

有谁知道哪个扩展提供了这个栏?

回答by Carsten Gehling

Turning the scrollbar always on did the trick for me:

始终打开滚动条对我有用:

body {
  overflow-y: scroll;
}

回答by Angus Prune

I fixed my missing scroll bar issue by turning off "Use hardware acceleration when available" It's in chrome://settings/system

我通过关闭“可用时使用硬件加速”修复了我丢失的滚动条问题它在 chrome://settings/system

回答by sofia

I did the same thing that @Carey Pico did and it worked
disabling extensions.
I first ran into this missing right scroll bar problem when opening Yahoo news pages today. I disabled all extensions
(access tools --> extensions)
and got back my right scroll bar where it should be.

我做了@Carey Pico 做的同样的事情,它可以
禁用扩展
今天打开雅虎新闻页面时,我第一次遇到了这个缺少右侧滚动条的问题。我禁用了所有扩展
(access tools --> extensions)
并将我的右滚动条找回了它应该在的地方。

回答by Josh Downes

Disabling extensions solved my problem, thanks! Here's an additional suggestion. To "disable" your extensions quickly and temporarily, just open a new Incognito windowin Chrome.

禁用扩展解决了我的问题,谢谢!这是一个额外的建议。要快速临时“禁用”您的扩展程序,只需在 Chrome 中打开一个新的隐身窗口

Menu -> "New incognito window"

OR

或者

Ctrl+ Shift+ N

Ctrl+ Shift+N

Cheers! Josh

干杯! 乔希

回答by carey pico

I ran into this situation where my "yahoo finance" page lost its scroll bar (after reinstalling Chrome). I only had one remaining extension left running (one I trusted). It was AVG Secure Search (I used AVG antivirus). I disabled it and the scroll bar appeared the next time I opened Yahoo Finance. Interestingly, I had left the old, missing scroll bar page open. It was unaffected.

我遇到了这种情况,即我的“雅虎财经”页面丢失了滚动条(重新安装 Chrome 后)。我只剩下一个分机在运行(我信任的分机)。它是 AVG Secure Search(我使用了 AVG 防病毒软件)。我禁用了它,下次打开雅虎财经时出现滚动条。有趣的是,我已经打开了旧的、丢失的滚动条页面。它没有受到影响。

So, AVG Secure Search extension interferes with yahoo products.

因此,AVG Secure Search 扩展会干扰雅虎产品。

回答by Gord Doubleday

I verified what extensions I had running, and the one that caused issues was my Avira Safebrowsing extension - disabled the extension and all good.

我验证了我运行的扩展程序,导致问题的扩展程序是我的 Avira Safebrowsing 扩展程序 - 禁用了该扩展程序,一切正常。

回答by al3xxx

For me the source of the problem was Ghostery extension. After installing "Ghostery fixer" extension scrollbar reappeared.

对我来说,问题的根源是 Ghostery 扩展。安装“Ghostery fixer”扩展滚动条后重新出现。