nopilot
nopilot
  • 发布:2020-08-31 19:15
  • 更新:2021-08-22 07:37
  • 阅读:2721

vue页面,背景色设置后不管用

分类:uni-app

我用了这几种设置方式

page{  
	background-color: #111111;  
}  
  
"globalStyle": {  
		"navigationBarTextStyle": "white",  
		"navigationBarBackgroundColor": "#111111",  
		"backgroundColor": "#111111",  
		"pageOrientation": "portrait",  
		"animationType":"pop-in",  
		"app-plus": {  
			"background": "#111111"  
		}  
}  
  
"path":"pages/art/class_list/styles-list",  
		"style": {  
			"navigationBarBackgroundColor":"#111111",  
			"backgroundColor":"#111111",  
			"backgroundColorTop":"#111111",  
			"backgroundColorBottom":"#111111"  
                 }  
}  

当我的vue页面中内容不满一页时,总是会露出底部的白色
而且当我进入vue页面时,屏幕会闪烁白色

2020-08-31 19:15 负责人:无 分享
已邀请:
深海智行

深海智行 - 专注前端培训

app.vue 页面中设置一下

page{    
    background-color: #111111;    
}  
  • nopilot (作者)

    这个也设置了,内容不满一页的情况下底部还是会有白色


    2020-08-31 21:00

2***@qq.com

2***@qq.com

同样遇到这个问题,不满一屏时,有内容的地方有背景色,底部没内容的地方就是白色

喜欢技术的前端

喜欢技术的前端 - QQ---445849201

给最外层view设置min-height:100vh然后设置背景色

该问题目前已经被锁定, 无法添加新回复