在App.vue的style样式中添加下面css代码
1 <style> 2 ::-webkit-scrollbar { 3 width: 0 !important; 4 } 5 ::-webkit-scrollbar { 6 width: 0 !important;height: 0; 7 } 8 </style>
重新运行后,所有页面就都不显示滚动条了
标签:vue,网页,滚动条,width,important,scrollbar,webkit From: https://www.cnblogs.com/lwl80/p/16712156.html