如何隐藏滚动条(亲测可用) .main{ -ms-overflow-style: none; overflow: -moz-scrollbars-none; } .main::-webkit-scrollbar { width: 0 !important }