vue设置和隐藏滚动条的方法 2022-06-17 14:05:25 1、设置滚动条: overflow-x: scroll; white-space: nowrap;2、隐藏滚动条: ::-webkit-scrollbar { width: 0 !important; } ::-webkit-scrollbar { width: 0 !important;height: 0; }