当前位置:网站首页>微信小程序,自定义输入框与导航胶囊对其
微信小程序,自定义输入框与导航胶囊对其
2022-08-10 14:15:00 【_Lan】
介绍:
获取导航胶囊的信息,有两个事件,wx.getSystemInfoSync()与wx.getMenuButtonBoundingClientRect()(注意这里不能使用rpx,只能使用px)。
状态栏高度:wx.getSystemInfoSync(),使用statusBarHeight。
胶囊高度:wx.getMenuButtonBoundingClientRect(),使用返回的height。
导航栏高度计算:(胶囊top-状态栏高度)*2 + 胶囊高度。
边栏推荐
- Lack of comparators, op amps come to the rescue!(Op amp is recorded as a comparator circuit)
- "Thesis Reading" PLATO: Pre-trained Dialogue Generation Model with Discrete Latent Variable
- @RequestBody的使用[通俗易懂]
- [target detection] small script: extract training set images and labels and update the index
- 1W字详解线程本地存储 ThreadLocal
- 学习日记8
- 数据产品经理那点事儿 二
- 池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!
- X5WebView使用
- PHP 判断文件是否有内容,没有内容则复制另一个文件写入
猜你喜欢
随机推荐
PHP judges whether the file has content, and if there is no content, copy another file to write
数据产品经理那点事儿 二
OpenStack-related commands that need to be recorded _ self-use
司空见惯 - 股市狠狠下跌后,何時能反弹?
简单的写一个防抖跟节流
Flask框架——MongoEngine使用MongoDB数据库
1W word detailed thread local storage ThreadLocal
作业8.9 构建TCP协议的服务器
一种能让大型数据聚类快2000倍的方法,真不戳
系统架构系列文章三--解决传统企业核心系统的性能问题
2022-08-10日报: Swin Transformer作者曹越加入智源,开展视觉基础模型研究
Borg Maze (bfs+最小生成树)
舵机内部结及工作原理浅析[通俗易懂]
微信扫码登陆(1)—扫码登录流程讲解、获取授权登陆二维码
使用mysq语句操作数据库
[219] The training course notes of the go engineer with more than 3,000 MOOCs 02 Programming ideas in the go language
1004(树状数组+离线操作+离散化)
Summary of Force Buckle Solution 640 - Solving Equations
这一次,话筒给你:向自由软件之父斯托曼 提问啦!
等保2.0一个中心三重防护指的是什么?如何理解?