Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一些网络开发,出于某种原因,在某些页面上,使用 Chrome 时,窗口右侧的滚动条是透明的或白色的。我查看了我的 css,但没有看到任何滚动条样式集。滚动条在 Firefox 中看起来很正常。
如果是因为页面太短以至于不需要滚动条,但您仍然希望它显示出来,您可以将overflow-yCSS 属性设置为scroll页面html元素上。例如:
overflow-y
scroll
html
html { overflow: auto; overflow-y: scroll; }