隐藏滚动条,但是保留原有的滚动效果,兼容ie,谷歌,火狐 html { overflow: auto; scrollbar-width: none; /* Firefox 64 */ -ms-overflow-style: none; /* IE 11 */ } html::-webkit-scrollbar { display:none; }