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

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


边栏推荐
猜你喜欢

从洞察到决策,一文解读标签画像体系建设方法论

缺少比较器,运放来救场!(运放当做比较器电路记录)

AWS Security Fundamentals

借数据智能,亚马逊云科技助力企业打造品牌内生增长力

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

字节终面:CPU 是如何读写内存的?
![[JS Advanced] Creating sub-objects and replacing this_10 in ES5 standard specification](/img/3e/14a1d7c2837c896eaa0ca625eaa040.png)
[JS Advanced] Creating sub-objects and replacing this_10 in ES5 standard specification

发送post请求前台无法获取数据

MySQL - 数据库的存储引擎

laravel throws the error to Dingding
随机推荐
1W字详解线程本地存储 ThreadLocal
numpy.meshgrid()理解
NAACL 2022 | 简单且高效!随机中间层映射指导的知识蒸馏方法
进程和计划任务管理
面试面到了一个腾讯30k出来的,有见识到何为精通MySQL调优
一种能让大型数据聚类快2000倍的方法,真不戳
第五讲 测试技术与用例设计
[Gazebo Introductory Tutorial] Lecture 3 Static/Dynamic Programming Modeling of SDF Files
文件系统设计
How to code like a pro in 2022 and avoid If-Else
Using data intelligence, Amazon cloud technology helps companies build endogenous brand growth
2011年下半年 系统架构设计师 下午试卷 II
第三方软件测评有什么作用?权威软件检测机构推荐
静态变量存储在哪个区
data product manager
Do not access Object.prototype method ‘hasOwnProperty‘ from target object....
快速了解大端模式和小端模式
司空见惯 - 股市狠狠下跌后,何時能反弹?
微信扫码登陆(1)—扫码登录流程讲解、获取授权登陆二维码
Stream通过findFirst()查找满足条件的一条数据