.interactiveStyle { height: 200px; overflow: auto; } .interactiveStyle::-webkit-scrollbar { /*滾動條整體樣式*/ width: 5px; /*高寬分別對應橫豎滾動條的尺寸*/ height: 1px; } .interactiveStyle::-webkit-scrollbar-thumb { /*滾動條裏面小方塊*/ border-radius: 5px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: #535353; } .interactiveStyle::-webkit-scrollbar-track { /*滾動條裏面軌道*/ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 10px; background: #ededed; }