习习2012
习习2012
  • 发布:2021-10-29 09:57
  • 更新:2022-04-09 10:59
  • 阅读:1123

UNIAPP background=transparent不生效

分类:nvue

在pages.json里面,在需要透明背景的界面里面加上下面的语句就行了
"backgroundColorTop": "transparent",
"backgroundColorBottom": "transparent",

0 关注 分享

要回复文章请先登录注册

2***@qq.com

2***@qq.com

回复 水手 :
{
"path": "pages/scan/scan-page",
"style": {
"navigationBarTitleText": "扫一扫",
"app-plus": {
"titleNView": {
"autoBackButton": true,
"titleSize": "20px",
"type": "transparent",
"backgroundColor": "rgba(255,255,255,0)"
}
}
}
}
2022-04-09 10:59
水手

水手

好像不支持 透明
2022-03-13 10:22