uniapp H5 关掉全部头部header

uniapp H5 关掉全部头部header

1.进入pages.json文件

 "globalStyle": {
    //"navigationStyle": "custom",
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "",
    "navigationBarBackgroundColor": "#F8F8F8",
    "backgroundColor": "#F8F8F8"
  },

示例
uniapp H5 关掉全部头部header_第1张图片

2.注释"navigationStyle": "custom"解开 即可

  "globalStyle": {
    "navigationStyle": "custom",
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "",
    "navigationBarBackgroundColor": "#F8F8F8",
    "backgroundColor": "#F8F8F8"
  }

示例
uniapp H5 关掉全部头部header_第2张图片

诸君有用且点赞

你可能感兴趣的:(uni-app)