vue项目去掉网页滚动条
在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>
重新运行后,所有页面就都不显示滚动条了
原创文章,转载请说明出处,谢谢合作
在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>
重新运行后,所有页面就都不显示滚动条了