![](https://img.haomeiwen.com/i17032486/ae62645a507fecf9.png)
解决方法:
使用背景图的元素的CSS设置:
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
width:100%;
background:url("./img/bg.png")no-repeat;
background-size:100% 100%;
box-sizing:border-box;
错误原因:
解决方法:
使用背景图的元素的CSS设置:
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
width:100%;
background:url("./img/bg.png")no-repeat;
background-size:100% 100%;
box-sizing:border-box;
错误原因:
本文标题:在vue中使用背景图时,在屏幕大的手机上底部会出现空白区域
本文链接:https://www.haomeiwen.com/subject/ikhpectx.html
网友评论