当前位置:网站首页>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 
边栏推荐
- Member inner class, static inner class, local inner class
- Open3D 隐藏点移除
- uniapp微信小程序报错 TypeError: Cannot read property ‘call‘ of undefined
- Unity C# 网络学习(十二)——Protobuf生成协议
- Detecting and counting tiny faces
- Verilog 拼接操作符号
- 工厂模式
- ActiveMQ message component publish subscribe redelivery message redelivery
- GPU训练云平台记录
- DevOps到底是什么意思?
猜你喜欢

MT-yolov6训练及测试

微信小程序自定义多项选择器

Detecting and counting tiny faces

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

Keras to tf Vgg19 input in keras_ shape

图片格式-webp

ThinkPHP 6 使用 mongoDB

SSD改进CFENet

Augfpn: amélioration de l'apprentissage des caractéristiques à plusieurs échelles pour la détection des cibles

Yolo nano: a highly compact one look convolutional neural network for target detection
随机推荐
Mqtt second session -- emqx high availability cluster implementation
Open3D 隐藏点移除
uni-app获取当前页面路由url
MySQL uses union all to count the total number of combinations of multiple tables and the number of tables respectively
微信小程序子组件向页面传值(父子组件间的通信)带源码
uniapp微信小程序报错 TypeError: Cannot read property ‘call‘ of undefined
Working for many years, recalling life -- three years in high school
General multiplier design, verilog code
Heavyweight released "FISCO bcos application landing guide"
pytoch总结—TENSOR 和NUMPY相互转换
微信小程序wx.navigateBack返回上一页携带参数
Product manager certification enrollment brochure (NPDP) in July 2022
Open3d farthest point sampling (FPS)
实例报错IOPub data rate exceeded
promise方法的简单使用
Pat (basic level) practice (Chinese) 1003 I want to pass! (20 points) C language implementation
Verilog expression
笔试题“将版本号从大到小排列”
Handwriting Redux thunk
Verilog shift operator