实现超过高度页面可滚动但不显示滚动条 css代码如下: .pro-con::-webkit-scrollbar {/*滚动条里面轨道*/ /*滚动条整体样式*/ width: 8px; /*高宽分别对应横竖滚动条的尺寸*/ height: 30px; }