微信小程序 顶部自定义导航 “navigationStyle“: “custom“ 真机iPhone6/7/8不显示胶囊按钮
微信小程序 顶部自定义导航 “navigationStyle”: “custom”要实现这种效果图1、在哪个页面上实现自定义导航栏就在哪个页面的 .json 文件中写上: “navigationStyle”: “custom” ,如果在app.json写那就是所有的页面都会变成通栏{ "component": true,"navigationStyle": "custom"}2、页面的.wxml代码:<view class="navbar" style="height:{{n
原创
2021-01-14 09:52:19 ·
7516 阅读 ·
3 评论