在app.vue中的style插入
:-webkit-scrollbar {
width: 0 !important;
}
::-webkit-scrollbar {
width: 0 !important;height: 0;
}
这样滚动条就全局隐藏了,
如果有需求想要开启滚动条,可以使用下里面方法:
overflow-x: scroll;
white-space: nowrap;
方法不错,纳入收藏
在app.vue中的style插入
:-webkit-scrollbar {
width: 0 !important;
}
::-webkit-scrollbar {
width: 0 !important;height: 0;
}
这样滚动条就全局隐藏了,
如果有需求想要开启滚动条,可以使用下里面方法:
overflow-x: scroll;
white-space: nowrap;
方法不错,纳入收藏