Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabBar字体颜色不生效问题 #2

Open
KuMaMon2019s opened this issue Jan 15, 2020 · 0 comments
Open

tabBar字体颜色不生效问题 #2

KuMaMon2019s opened this issue Jan 15, 2020 · 0 comments

Comments

@KuMaMon2019s
Copy link

教程中tabBar设置的字体颜色不太严谨,会出现字体颜色不生效。因此可以这样设置。

"tabBar":{
    "color": "#999",
    "selectedColor": "#b80105",
    "backgroundColor": "#ffffff",
    "position": "bottom",
    "borderStyle": "black",
    "list": [{
      "pagePath": "pages/playlist/playlist",
      "text":"音乐",
      "iconPath":"images/icons/yinyue.png",
      "selectedIconPath":"images/icons/s_yinyue.png"
    },
    {
      "pagePath": "pages/blog/blog",
      "text":"发布",
      "iconPath":"images/icons/fabu.png",
      "selectedIconPath":"images/icons/s_fabu.png"
    },
    {
      "pagePath": "pages/profile/profile",
      "text":"我的",
      "iconPath":"images/icons/wode.png",
      "selectedIconPath":"images/icons/s_wode.png"
    }
  ]
  },

主要问题在于
"color": "#999",
"selectedColor": "#b80105",
需要设置个背景色做为遮罩,覆盖原有的样式
"backgroundColor": "#ffffff",
"position": "bottom",
"borderStyle": "black",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant