相关疑难解决方法(0)

如何为CSS webkit滚动条添加边距?

这是我的网站,其中包含当前的webkit滚动条:http://willwhitehead.com

我想在滚动条和屏幕右边缘之间创建一个间隙.

我该如何实现这一目标?

提前致谢,

css webkit margin scrollbar

11
推荐指数
5
解决办法
3万
查看次数

如何自定义自定义滚动?

我希望我的卷轴具有透明背景,因为卷轴是一个轻微的白色短划线,顶部有向上箭头和向下箭头......这就是我现在定制的方式.它给了我一个灰色的长卷轴...但我不知道要编辑什么来改变它?

    ::-webkit-scrollbar {
    width: 10px;
    height: 6px;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
    height: 30px;
    display: block;
    background-color: transparent;
}

::-webkit-scrollbar-track-piece {
    background-color: transparent;
    -webkit-border-radius: 6px;
}

::-webkit-scrollbar-thumb:vertical {
    height: 50px;
    background-color: #666;
    -webkit-border-radius: 6px;
}

::-webkit-scrollbar-thumb:horizontal {
    width: 50px;
    background-color: #666;
    -webkit-border-radius: 3px;
}
Run Code Online (Sandbox Code Playgroud)

css customization scrollbar

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

css ×2

scrollbar ×2

customization ×1

margin ×1

webkit ×1