app.json中backgroundColor的配置

发布于 7 年前作者 jiehao11964 次浏览最后编辑 7 年前来自 ask

为什么在app.json中配置backgroundColor不起作用?

2 回复
junshi
junshi1 楼6 年前

1、backgroundColor 只能是 #000000 这种格式,不能用 red white这种

2、backgroundColor 不是指页面的背景,二是指在 page可以滚动的时候 (disableScroll为false),拖到顶部,露出的多余部分的背景色

mingong
mingong2 楼5 年前

在公共样式里写page{backgroundColor: ****}