关于用 Vue- cli 创建 vue3 项目在 app.vue 中设置height:100%无效的问题及解决方法

在 index.html 中添加如下代码,即可解决(方法不唯一)

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

猜你喜欢

转载自blog.csdn.net/Dream104/article/details/126517609