page {
background-color: red;
height: 100vh;
}
这样设置在模拟器上背景是铺满了的,但是打包后背景颜色未铺满。
经过排查后,我采用另一种方式替换
//content是根节点
.content{
background-color: red;
height: 100vh;
}
这样打包就没问题了,但不知道造成的原因是什么?
有知道的小伙伴能在万能的评论区留言回答下吗?
感谢!感谢!