1.首先,在public--index.html中,设置html,body,#app
html,
body,
#app {
height: 100%;
margin: 0px;
padding: 0px;
}
2. 进入容器组件
.app-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.main_container {
height: 100%;
}