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

Detecting and counting tiny faces

Unity C# 网络学习(十二)——Protobuf生成协议

在 golang 中是如何对 epoll 进行封装的?

调试H5页面-weinre及spy-debugger真机调试

记自定义微信小程序顶部导航栏

Augfpn: improved multiscale feature learning for target detection

Training kernel switching using GPU

Open3D 最远点采样(FPS)

mysql insert 时出现Deadlock死锁场景分析

H5 soft keyboard problem
随机推荐
Enrollment brochure for system integration project management engineer certification in July 2022
MT yolov6 training and testing
Handwritten virtualdom
Macros, functions, and inline functions
Pointnet的网络学习
Open3d farthest point sampling (FPS)
H5 soft keyboard problem
mongoDB 持久化
SSD Improvement cfenet
编程语言
JS to obtain basic information about the width and height of an image or Base64
调试H5页面-weinre及spy-debugger真机调试
两阶段目标检测原理详细版
jar包和war包
cokkie和session的区别
H5软键盘问题
General multiplier design, verilog code
手写 redux-thunk
Mqtt second session -- emqx high availability cluster implementation
微信小程序子组件向页面传值(父子组件间的通信)带源码