当前位置:网站首页>微信小程序,自定义输入框与导航胶囊对其
微信小程序,自定义输入框与导航胶囊对其
2022-08-10 14:15:00 【_Lan】
介绍:
获取导航胶囊的信息,有两个事件,wx.getSystemInfoSync()与wx.getMenuButtonBoundingClientRect()(注意这里不能使用rpx,只能使用px)。
状态栏高度:wx.getSystemInfoSync(),使用statusBarHeight。
胶囊高度:wx.getMenuButtonBoundingClientRect(),使用返回的height。
导航栏高度计算:(胶囊top-状态栏高度)*2 + 胶囊高度。
边栏推荐
- 王学岗—————————哔哩哔哩直播-手写哔哩哔哩硬编码录屏推流(硬编)(26节课)
- Existing in the rain of PFAS chemical poses a threat to the safety of drinking water
- Summary of Force Buckle Solution 640 - Solving Equations
- Makefile missing separator. Stop.怎么解决「建议收藏」
- Flask框架——基于Celery的后台任务
- 使用mysq语句操作数据库
- A method that can make large data clustering 2000 times faster
- epoll学习:思考一种高性能的服务器处理框架
- 公网IP和内网IP的区别[通俗易懂]
- [target detection] small script: extract training set images and labels and update the index
猜你喜欢
使用mysq语句操作数据库
[Study Notes] Persistence of Redis
laravel 抛错给钉钉
数学建模学习视频及资料集(2022.08.10)
Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!
正则表达式(包含各种括号,echo,正则三剑客以及各种正则工具)
Alibaba的秒杀系统—千亿级并发设计手册上线了
Existing in the rain of PFAS chemical poses a threat to the safety of drinking water
【Gazebo入门教程】第三讲 SDF文件的静/动态编程建模
记录几道整型提升的题目
随机推荐
Do not access Object.prototype method ‘hasOwnProperty‘ from target object....
注意力模型---Attention Model
力扣解法汇总640-求解方程
2022年中国软饮料市场洞察
vue 怎么清除tab 切换缓存问题 ?
PEST 分析法
[Gazebo Introductory Tutorial] Lecture 3 Static/Dynamic Programming Modeling of SDF Files
【MinIO】工具类使用
使用mysq语句操作数据库
2012年下半年 系统架构设计师 下午试卷 II
高薪程序员&面试题精讲系列135之你对分布式是怎么理解的?CAP理论你知道吗?
leetcode 739. Daily Temperatures Daily Temperatures (Moderate)
王学岗————直播推流(软便)03x264集成与camera推流
OpenStack-related commands that need to be recorded _ self-use
系统架构系列文章三--解决传统企业核心系统的性能问题
[target detection] small script: extract training set images and labels and update the index
锂电池技术
SQL学习(基础)
Cloud Migration Practice of Redis
Summary of tensorflow installation stepping on the pit