微信小程序设置backgroundColor无效问题

全局配置和页面配置的backgroundColor指的是下拉刷新时出现的窗口,如果要设置页面背景颜色,
需要在页面文件的wxss文件内写page样式,如下

page{
  background-color: #f3f3f3;
}

猜你喜欢

转载自blog.csdn.net/qq_42944436/article/details/105436576