只需要在css中设置 html{ overflow-y: auto;overflow-x: hidden; } body{ width: 100vw; } 转载于:https://www.cnblogs.com/yforward/p/7575350.html