当前位置:网站首页>微信小程序,自定义输入框与导航胶囊对其
微信小程序,自定义输入框与导航胶囊对其
2022-08-10 14:15:00 【_Lan】

介绍:
获取导航胶囊的信息,有两个事件,wx.getSystemInfoSync()与wx.getMenuButtonBoundingClientRect()(注意这里不能使用rpx,只能使用px)。
状态栏高度:wx.getSystemInfoSync(),使用statusBarHeight。
胶囊高度:wx.getMenuButtonBoundingClientRect(),使用返回的height。
导航栏高度计算:(胶囊top-状态栏高度)*2 + 胶囊高度。


边栏推荐
- 普林斯顿微积分读本05第四章--求解多项式的极限问题
- ICML 2022 | 基于随机注意力机制的可解释可泛化图学习
- Second half of 2011 System Architect Afternoon Paper II
- Open source SPL wipes out tens of thousands of database intermediate tables
- 使用决策树对鸢尾花进行分类
- Circle 创始人回应美财政部禁止 Tornado :隐私与安全之间关系紧张
- Matlab画分段函数「建议收藏」
- 领域驱动实践总结(基本理论总结与分析V+架构分析与代码设计+具体应用设计分析)
- Makefile missing separator. Stop.怎么解决「建议收藏」
- 统信 UOS V20 专业版(1050update2)发布:文件共享、全局搜索等优化
猜你喜欢

作业8.9 构建TCP协议的服务器

1W word detailed thread local storage ThreadLocal

Unfinished mathematics test paper ----- test paper generator (Qt includes source code)

Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!

List集合

【量化交易行情不够快?】一文搞定通过Win10 wsl2 +Ubuntu+redis+pickle实现股票行情极速读写

池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!
![[Study Notes] Persistence of Redis](/img/e4/d3c09754ca5ac4fdad2653ccca6d82.png)
[Study Notes] Persistence of Redis

开源SPL消灭数以万计的数据库中间表

面试面到了一个腾讯30k出来的,有见识到何为精通MySQL调优
随机推荐
开源SPL消灭数以万计的数据库中间表
data product manager
Vivado crashes or the message is not displayed
Stream通过findFirst()查找满足条件的一条数据
Do not access Object.prototype method ‘hasOwnProperty‘ from target object....
注意力模型---Attention Model
Parallels 将扩展桌面平台产品,以进一步改善在 Mac 上运行 Windows 的用户体验和工作效率
使用mysq语句操作数据库
数学建模学习视频及资料集(2022.08.10)
Open source SPL wipes out tens of thousands of database intermediate tables
1004 (tree array + offline operation + discretization)
八大排序总是忘?快来这里~
记录几道整型提升的题目
图式图例规范尺寸
写不完的数学试卷-----试卷生成器(Qt含源码)
sql语句 异常 Err] 1064 – You have an error in your SQL syntax; check the manual that corresponds to your
WebView的优化与常见问题解决方案
系统的安全和应用(不会点安全的东西你怎么睡得着?)
镜像瘦身:每一层都不能放过
laravel 抛错给钉钉