CSS小技巧——CSS滚动条美化
前:
代码:
/* 滚动槽 */
::-webkit-scrollbar {width: 6px;height: 6px;
}
::-webkit-scrollbar-track {border-radius: 3px;background: rgba(0,0,0,0.06);-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.08);
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {border-radius: 3px;background: rgba(0,0,0,0.12);-webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}
复制代码