当前位置:网站首页>微信小程序,自定义输入框与导航胶囊对其
微信小程序,自定义输入框与导航胶囊对其
2022-08-10 14:15:00 【_Lan】
介绍:
获取导航胶囊的信息,有两个事件,wx.getSystemInfoSync()与wx.getMenuButtonBoundingClientRect()(注意这里不能使用rpx,只能使用px)。
状态栏高度:wx.getSystemInfoSync(),使用statusBarHeight。
胶囊高度:wx.getMenuButtonBoundingClientRect(),使用返回的height。
导航栏高度计算:(胶囊top-状态栏高度)*2 + 胶囊高度。
边栏推荐
猜你喜欢
池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!
“Oracle 封禁了我的账户”
2022年网络安全培训火了,缺口达95%,揭开网络安全岗位神秘面纱
系统的安全和应用(不会点安全的东西你怎么睡得着?)
Error: Rule can only have one resource source (provided resource and test + include + exclude)
2022年中国软饮料市场洞察
统信 UOS V20 专业版(1050update2)发布:文件共享、全局搜索等优化
系统架构系列文章三--解决传统企业核心系统的性能问题
强意识 压责任 安全培训筑牢生产屏障
Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!
随机推荐
系统的安全和应用(不会点安全的东西你怎么睡得着?)
注意力模型---Attention Model
学习日记8
2022年中国软饮料市场洞察
Lithium battery technology
文件系统设计
How to code like a pro in 2022 and avoid If-Else
[219] The training course notes of the go engineer with more than 3,000 MOOCs 02 Programming ideas in the go language
1W word detailed thread local storage ThreadLocal
numpy.meshgrid()理解
AWS 安全基础知识
关于已拦截跨源请求CORS 头缺少 ‘Access-Control-Allow-Origin‘问题解决
作业
laravel 抛错给钉钉
[JS Advanced] Creating sub-objects and replacing this_10 in ES5 standard specification
池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!
串口服务器调试助手使用教程,串口调试助手使用教程【操作方式】
高数_证明_曲率公式
领域驱动实践总结(基本理论总结与分析V+架构分析与代码设计+具体应用设计分析)
1004 (tree array + offline operation + discretization)