vueに画面全体を埋め尽くすことはできません
1865 ワード
1.cssでdivを設定するスタイルposition:fixed;およびheight:100%、width:100%
2.App.vueでbodyを設定
<template>
<div class="html body">
</template>
.html{
background:url('../img/bg.jpg') repeat center top #826e79;
height: 100%;
width: 100%;
position: fixed;
}
2.App.vueでbodyを設定
body {
margin: 0;
padding: 0;
}