uniapp tabBar背景颜色
时间: 2023-09-12 11:04:18 浏览: 369
uniapp 微信小程序tabbar凸起的显示
在UniApp中,可以通过在`pages.json`文件的全局配置中设置`tabBar.backgroundColor`来指定tabBar的背景颜色。例如,可以在`pages.json`中添加以下代码来设置tabBar的背景颜色为黑色:
```json
"tabBar": {
"backgroundColor": "#000000"
}
```
这样设置后,整个应用的tabBar背景颜色就会变为黑色。需要注意的是,该设置是全局生效的,会对所有页面的tabBar生效。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [uni-app(4)— 配置tabbar](https://blog.csdn.net/tiffany_kim/article/details/115484137)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [uniapp怎么设置导航栏颜色,标题颜色](https://blog.csdn.net/weixin_60415789/article/details/130269914)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文