Regarding the problem and solution of setting height: 100% invalid in app.vue when creating a vue3 project with Vue-cli

Add the following code in index.html to solve it (the method is not unique)

<style>
* {
    
    
	 margin: 0;
   	padding: 0;
 }
 html,body,#app {
    
    
 	height: 100vh;
 	overflow: hidden;
 }
</style>

Guess you like

Origin blog.csdn.net/Dream104/article/details/126517609