美文网首页
微信小程序-tabbar背景色在苹果系统上异常

微信小程序-tabbar背景色在苹果系统上异常

作者: 苏本的书柜 | 来源:发表于2019-04-23 17:51 被阅读0次
image.png
tabBar: {
      borderStyle: "white",
      backgroundColor: "white",//在苹果上异常
      selectedColor: "#1781ff",
      color: "#666666",
      list: [{
        pagePath: "pages/news/index",
        iconPath: "assets/Tab/tab_home_gray.png",
        selectedIconPath: "assets/Tab/tab_home-pre.png",
        text: "今日简讯"
      }, {
        pagePath: "pages/my/index",
        selectedIconPath: "assets/Tab/tab_my_pre.png",
        iconPath: "assets/Tab/tab_my_gray.png",
        text: "我的"
      }]

修改后,需要改成#ffffff,必须是6位,不能简写成为3位

tabBar: {
      borderStyle: "white",
      backgroundColor: "#ffffff",
      selectedColor: "#1781ff",
      color: "#666666",
      list: [{
        pagePath: "pages/news/index",
        iconPath: "assets/Tab/tab_home_gray.png",
        selectedIconPath: "assets/Tab/tab_home-pre.png",
        text: "今日简讯"
      }, {
        pagePath: "pages/my/index",
        selectedIconPath: "assets/Tab/tab_my_pre.png",
        iconPath: "assets/Tab/tab_my_gray.png",
        text: "我的"
      }]
    }

相关文章

网友评论

      本文标题:微信小程序-tabbar背景色在苹果系统上异常

      本文链接:https://www.haomeiwen.com/subject/wwdbgqtx.html