1.代码
/*.contacts-box你懂的*/ .contacts-box { overflow-x: hidden; overflow-y: scroll; } /*width是滚动小方块的宽度 高度好像没有用不用管*/ .contacts-box::-webkit-scrollbar { width: 3px; height: 1px;} /*下面是滚动小方块的样式*/ .contacts-box::-webkit-scrollbar-thumb { border-radius: 2px; box-shadow: inset 0 0 5px rgba(0, 122, 204, 0.5); background: #505473; }