大家好,又见面了,我是你们的朋友全栈君。
新建项目 vue默认为body设置了margin:8px
我们可以在App.vue <style>
中,设置width和height为100%,对margin进行重写去掉边距
html,body{
width: 100%;
height: 100%;
margin: 0;
}
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/129769.html原文链接:https://javaforall.cn