当前位置:网站首页>Wechat applet status bar
Wechat applet status bar
2022-07-19 05:11:00 【A young man】
I wrote the status bar of the applet when I first came into contact with the applet , Today, when I was developing, I encountered , By the way, record .
<view style="padding-top: {
{statusBarHeight}}px;background-color: #f6f6f6;"></view>
Page({
data: {
statusBarHeight: 0, // Initial height of status bar
toBarHeight: 44, // Title bar height
},
onLoad(options){
// Height of mobile status bar
let sysinfo = wx.getSystemInfoSync();
this.setData({
statusBarHeight: sysinfo.statusBarHeight
})
},
})
边栏推荐
- 实习项目2-主页配置-我的数据模块
- LeetCode53. 最大子数组和
- es6新增-对象部分
- es6新增-数组部分
- Database training 7 [index and creation of data integrity constraints]
- 学习C语言第7天
- IDL 6S查找表
- 02 Bar _ Recommandation de film (basée sur le contenu) Portrait de l'utilisateur
- Travel data acquisition, data analysis and data mining [2022.5.30]
- Topicexchange switch is simple to use.
猜你喜欢

数据库实训7【索引与数据完整性约束的创建】

微信小程序获取年月日周及早上、中午、晚上

卷积神经网络

Ucharts chart, pie chart, bar chart and line chart are used in uniapp

mysql数据库实验实训5,数据查询yggl数据库查询(详细)
![[batch] batch delete intermediate folder - personal research script](/img/6d/699987559bc25998e635a403d9d52d.png)
[batch] batch delete intermediate folder - personal research script

uni-app 条件编译#ifdef #endif 兼容多个终端

Topicexchange switch is simple to use.

IText modify PDF Text

【C】 Beam calculator
随机推荐
uniapp中使用ucharts图表,饼状图,柱状图,折线图
SQL语句学习
机器学习之特征提取(类别特征进行数值化、离散化、文本特征进行数值化)
Internship project 3- change owner
MySQL optimization
游玩数据获取与数据分析、数据挖掘 【2022.5.30】
微信小程序获取年月日周及早上、中午、晚上
获取数组中对象内部的数值最大与最小值多功能版及点名系统完整版并展示效果
computed和watch的区别
使用Echars实现水滴状、环形图、分割图、堆叠、组织架构图、地图轮廓等图表
学习C语言的第五天
读论文《Learning to Measure Changes: Fully Convolutional Siamese Metric Networks for Scene Change Detec》
第十届泰迪杯数据挖掘挑战赛A题害虫识别YOLOv5模型代码(已跑通,原创作品,持续更新)
Getting started with harmonios
使用js中的(offset,page)实现登录效果
关于New_Online_Judge_1081_哥德巴赫猜想的思考
SMS verification test without signature template audit
How to upload qiniu cloud
C语言初学者之初识代码专项练习
uni-app 条件编译#ifdef #endif 兼容多个终端