Closed HcGys closed 1 year ago
我根据volantis改了改,实现了该功能,就不麻烦大佬了。
// 添加代码
style:
.......
scrollbar:
size: 4px
border: 2px
color: '#2196f3'
hover: '#ff5722'
// 滚动条颜色,添加代码
$color-scrollbar = convert(hexo-config('style.scrollbar.color'))
$color-hover-scrollbar = convert(hexo-config('style.scrollbar.hover'))
// 修改代码
scrollbar($w = 4px, $b = 2px, $c = $color-scrollbar, $h = $color-hover-scrollbar)
// 第一处代码添加
*
......
scrollbar()
// 第二处代码添加
html
......
>
if hexo-config('style.scrollbar.size')
scrollbar(convert(hexo-config('style.scrollbar.size')), convert(hexo-config('style.scrollbar.border')) || 0px)
大佬你好,请问可以优化一下pc端的滚动条样式吗? 目前样式: 预期样式: