Questions about setting the background color of uniapp

page {
    
    
	background-color: red;
	height: 100vh;
}

With this setting, the background is fully covered on the simulator, but the background color is not fully covered after packaging.

After troubleshooting, I used another method to replace

//content是根节点
.content{
    
    
	background-color: red;
	height: 100vh;
}

There is no problem with packaging like this, but I don’t know what the cause is?
Anyone who knows can leave a message in the universal comment area and answer?
Thanks! grateful!

Guess you like

Origin blog.csdn.net/Admin_yws/article/details/123821027