当前位置:网站首页>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 
边栏推荐
猜你喜欢

MySQL uses union all to count the total number of combinations of multiple tables and the number of tables respectively

抽象类、接口

【To .NET】C#数据模型,从Entity Framework Core到LINQ

Lffd: a lightweight fast face detector for edge detection

What exactly does Devops mean?

LFFD:一种用于边缘检测的轻量化快速人脸检测器

微信小程序判断url的文件格式

laravel 8 实现 订单表按月份水平分表

Handwritten virtualdom

Solutions to ineffective uniapp import components
随机推荐
调试H5页面-vConsole
什么是超融合?与传统架构有什么区别?.
uni-app获取当前页面路由url
Detecting and counting tiny faces
Product manager certification enrollment brochure (NPDP) in July 2022
SSD改进CFENet
微信小程序打开文件流
Wechat applet jump to official account image and text content
微信小程序项目:tab导航栏
Verilog expression
Mysql使用union all统计多张表组合总数,并分别统计各表数量
cokkie和session的区别
Network security issues
Open3d hidden point removal
Abstract classes and interfaces
在 RedisTemplate 中使用 scan
Training kernel switching using GPU
pytorch学习总结—运算的内存开销
keras转tf.keras中VGG19 input_shape
观察者模式怎么实现