zoukankan      html  css  js  c++  java
  • 微信小程序tabBar如何设置

    tabBar属于全局配置,所以它应该在app.json中进行配置

    "tabBar": {
        "color": "#ccccc",
        "selectedColor": "#42BD55",
        "backgroundColor": "",
        "position": "bottom",
        "borderStyle": "black",
        "list": [
          {
            "pagePath": "pages/index1/index1",
            "text": "首页",
            "iconPath": "/img/c2.png",
            "selectedIconPath": "/img/w1.png"
          },
           {
            "pagePath": "pages/index2/index2",
            "text": "菜单一",
            "iconPath": "/img/c2.png",
            "selectedIconPath": "/img/w1.png"
          },
          {
            "pagePath": "pages/index3/index3",
            "text": "菜单二",
            "iconPath": "/img/c2.png",
            "selectedIconPath": "/img/w1.png"
          }
        ]
      },

    各参数的说明:

    iconPath:未选中icon样式
    selectedIconPath:选中icon样式
    pagePath:页面路径
    text:菜单标题
     
     


  • 相关阅读:
    异常
    抽象类
    java基础—接口3
    java基础—接口2
    java基础—接口1
    Android拍照适配方案
    继承—Car
    继承—矩形
    使用CSS和jQuery实现tab页
    纯CSS实现圆形进度条
  • 原文地址:https://www.cnblogs.com/cyxng/p/14594644.html
Copyright © 2011-2022 走看看