方案一
bgc {
background-image: url(../image.ipg);
positon:absolute;
left:0;
right:0;
bottom:0;
top:0;
}
方案二
position absolute
width 100vw
height 100vh
background-repeat no-repeat
background-size cover
background-position 50%
background-image url(`/static/img.jpg`)