为了账号安全,请及时绑定邮箱和手机立即绑定

小程序tabBar字体颜色设置不起效果

/ 猿问

小程序tabBar字体颜色设置不起效果

weixin_忊柃_0 2018-05-17 18:18:56

"tabBar": {

"selectedColor": "rgb(31,122,244)",

"backgroundColor":"#fff",

"position":"bottom",

"borderStyle": "white",

"list": [

{

"pagePath": "pages/share-index/share-index",

"text": "牛人",

"iconPath":"img-icon/tab_niuren_icon_normal@2x.png",

"selectedIconPath":"img-icon/tab_niuren_icon_press@2x.png",

"color": "rgba(160,162,176)"

},

{

"pagePath": "pages/share-info/share-info",

"text": "消息",

"iconPath": "img-icon/tab_message_icon_normal@2x.png",

"selectedIconPath":   "img-icon/tab_message_icon_press@2x.png",

"color": "rgba(160,162,176)"

},

{

"pagePath": "pages/share-info/share-info",

"text": "我的",

"iconPath": "img-icon/tab_mine_icon_normal@2x.png",

"selectedIconPath": "img-icon/tab_mine_icon_press@2x.png",

"color": "rgba(160,162,176)"

}

]

},


查看完整描述

2 回答

?
VickyChloe

https://img1.mukewang.com/5d3ac0430001c23507760360.jpg

如上图设置

查看完整回答
反对 回复 2019-07-26
?
shiny_jun

把color写到selectedColor上面,把下面list里的都删了,就可以了。

查看完整回答
反对 回复 2018-05-22

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信