Loading... 方法一 .element::-webkit-scrollbar { display: none; /* Chrome Safari */ } 方法二 chrome 和Safari ```css .element::-webkit-scrollbar { width: 0 !important } ``` IE 10+ ```css .element { -ms-overflow-style: none; } ``` Firefox ```css //code from http://caibaojian.com/hide-scrollbar.html .element { overflow: -moz-scrollbars-none; } ``` 最后修改:2022 年 10 月 21 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏