CSS的一些常用样式,如背景、文字、文本、表格、列表等,以及一些常用的场景,如居中对齐、溢出、隐藏元素等。01、常用样式 1.1、background背景 设置元素背景的样式 background,更
顺晟科技
2021-08-27 11:55:27
124
<div class="qq_bottom">
超出部分变滚动条
</div>
/*//滚动条整体部分*/
.qq_bottom::-webkit-scrollbar {
width:5px;
height:10px;
}
/*//scroll轨道背景*/
.qq_bottom::-webkit-scrollbar-track {
border-radius: 10px;
background-color: #dbdbdb;
}
/*滚动条中的滑块*/
.qq_bottom::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #b5b1b1;
}
/*滚动条上下两端可以进行微调的按钮*/
/*滚动条整体宽度太小会不明显*/
.qq_bottom::-webkit-scrollbar-button {
width:5px;
height:5px;
background-color:red;
}
09
2022-11
30
2022-09
15
2022-09
15
2022-09
15
2022-09
15
2022-09