Sarah119

按照官方文档的说明,backgroundColor应该可以设置窗口的背景色。

"window":{
    "backgroundTextStyle":"light",
    "navigationBarBackgroundColor": "red",
    "navigationBarTitleText": "WeChat",
    "navigationBarTextStyle":"black",
    "backgroundColor": "#000",
    "enablePullDownRefresh":true
  },

但是设置backgroundColor后并不生效,解决办法就是直接在app.wxss中设置:

page{  
  background-color: black;
}  

分类:

技术点:

相关文章:

  • 2021-11-26
  • 2021-09-11
  • 2021-10-02
  • 2021-11-26
  • 2021-09-28
  • 2021-12-09
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-12-25
  • 2021-11-17
相关资源
相似解决方案