当前位置:网站首页>Remember to customize the top navigation bar of wechat applet
Remember to customize the top navigation bar of wechat applet
2022-06-29 09:17:00 【swag_ Special actor】
If there is a need, there must be a solution
How to make the custom navigation bar compatible with all models , Be sure to get statusBarHeight( The state height of the top ),
How to take it ?
The height of the status bar :
Only under it can we write our customized navigation bar , So all models are applicable , Will not be blocked .
Be careful
- On which page to customize the top navigation bar , Write another one for yourself , Small capsules will remain , The return button should be added by itself
wx.navigateBack({delta: 1})Just go - It is best to use a fixed layout
fixedOtherwise, the navigation bar may scroll with the page , It's not easy - A page with a custom navigation bar , It returns the available height
windowHeightIt does not include the height of the status barstatusBarHeightSome places need to calculate the page height
Use

effect
This part of the circle is the navigation bar 
You can also use pictures , Give him as high as you want 
边栏推荐
猜你喜欢
随机推荐
修改exif信息
单例模式的理解
uniapp引入组件不生效解决方法
uniapp微信小程序报错 TypeError: Cannot read property ‘call‘ of undefined
记一些笔试题
Verilog 表达式
Detailed version of two-stage target detection principle
Mqtt second session -- emqx high availability cluster implementation
Verilog shift operator
ServerApp. iopub
Uni app gets the route URL of the current page
July 2022 (advanced soft test) information system project manager certification enrollment Brochure
AugFPN:改進多尺度特征學習用於目標檢測
【To .NET】C#数据模型,从Entity Framework Core到LINQ
Verilog 拼接操作符号
Solutions to ineffective uniapp import components
io流的总结
verilog 归约操作符
laravel 8 实现 订单表按月份水平分表
First electric shock, so you are such a dragon lizard community | dragon lizard developer said that issue 8









