1、设置滚动条: overflow-x: scroll; white-space: nowrap; 2、隐藏滚动条: ::-webkit-scrollbar { width: 0 !important; } ::-webkit-scrollbar { width: 0 !important;height: 0; }