.detailList{ height:28em; overflow: auto; } .detailList::-webkit-scrollbar { width: 5px; background: transparent; } .detailList::-webkit-scrollbar-button { display: none; } .detailList::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 2px 2px; }
滚动条效果图对比:
来自ansion博客
2017-09-22 14:00:37