问题情景:开发中发现我的项目四周有白边,但是并没有设置样式
问题原因:vue脚手架中静态文件夹public中的index.html造成的
解决方案:找到vue脚手架中index.html页面,设置margin为0即可
<style> body { margin: 0; } </style>