设置滚动条
<div class="xxx" style="overflow-y: scroll">
css美化
-webkit-scrollbar:滚动条的宽度
-webkit-scrollbar-track:滚动条轨道
-webkit-scrollbar-thumb:滚动条滑块
<style>
.xxx::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.xxx::-webkit-scrollbar-track {
background-color:transparent;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius:2em;
}
.xxx::-webkit-scrollbar-thumb {
background-color: rgb(147,147,153,0.5);
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius:2em;
}
</style>