如何设置垂直滚动条和水平滚动条之间的小平方空间?

时间:2022-08-27 10:50:48

Please refer to the images below.

请参考下面的图片。

如何设置垂直滚动条和水平滚动条之间的小平方空间?如何设置垂直滚动条和水平滚动条之间的小平方空间?

When both a vertical and horizontal scrollbar meet, a squared space is created. This happens not only on the browser window, but also in the inner elements that have an overflow.

当垂直和水平滚动条相遇时,会创建一个平方空间。这不仅发生在浏览器窗口上,还发生在具有溢出的内部元素中。

In my current project, the color of the space creates an unintentional heavy contrast that attracts the attention of the user. How can I style it so it could be the same color as my background, or even better, "transparent"?

在我目前的项目中,空间的颜色产生了无意识的强烈对比,吸引了用户的注意力。我如何设计它,使其与我的背景颜色相同,甚至更好,“透明”?

1 个解决方案

#1


1  

If you can try this css code

如果你可以试试这个css代码

  ::-webkit-scrollbar
    {
        width:0px;
    }
    ::-webkit-scrollbar-track-piece
    {
        background-coor:transparent;
    }

#1


1  

If you can try this css code

如果你可以试试这个css代码

  ::-webkit-scrollbar
    {
        width:0px;
    }
    ::-webkit-scrollbar-track-piece
    {
        background-coor:transparent;
    }