当前位置:网站首页>What if the applet page is set to 100% height or left blank?
What if the applet page is set to 100% height or left blank?
2022-06-28 06:27:00 【Infatuated Arvin】
Preface of this paper : Applet page setup 100% What if the height is still left blank ? Like applet ,app Setting height is often encountered during development , Page color problem , There is often a phenomenon that the blank space is not full , Today I wrote a whole article , Solve this problem .
Page settings background color
"pages": {
"navigationBarBackgroundColor": "#32A2FD", // Top background color
"navigationBarTitleText": "123456", // Top text
"navigationStyle": "default", // Whether to customize the navigation bar , When "default" by "custom" Turn on the custom header navigation bar option
"navigationBarTextStyle": "white", // Top text color Support only white/black
"enablePullDownRefresh": true, // Turn on pull-down refresh , Set to... On a single page "false", The current settings will be overwritten on the usage page
"backgroundTextStyle":"light" // Drop down background font 、loading Style of drawing , Support only dark/light
},The first method :position: fixed; advantage , Fill all without leaving any blank , shortcoming , The page is fixed and cannot be slid
box:{
height: 100%;
width: 100%;
background-color: #fff;
position: fixed;
}
The second kind , Page height setting 100vh
box:{
height: 100%;
width: 100vh;
background-color: #fff;
}
By the way 100% and 100vh The difference between :
vh Is the height of the current screen 1%, in other words100vh == 100%,
If the element has no content , Set up height:100% The element will not be pulled apart ,
Set up height:100vh, The element will be stretched out to the same height on the screen .

If you think the blogger's article can help you , Please support the blogger
Write something extra , Recently, more applets are used , Ternary operator
expression 1 ? expression 1 by true The result of time : ( expression 2 ? expression 2 by true The result of time : It's all about false Result )
if (this[types == 10 ? 'lastPage':(types == 11?'lastPage2':'lastPage3')] && page != 0) return
this[types == 10 ? 'page' :(types == 11?'page2':'page3') ] += page边栏推荐
- Enum
- lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性
- MySQL common functions
- mysql常用函数
- Openharmony gnawing paper growth plan -- json-rpc
- 基本类型和包装类的区别
- windows上安装redis并永久修改密码,及ssm框架集成redis
- JDBC学习(一)——实现简单的CRUD操作
- Boost the rising point | yolov5 combined with alpha IOU
- FPGA - 7 Series FPGA selectio -07- iserdese2 of advanced logic resources
猜你喜欢

Uni app wechat applet sharing function

Parsing ng template with let total in NZ Pagination

职场IT老鸟的几点小习惯

Camx架构开UMD、KMD log以及dump图的方式

Build your jmeter+jenkins+ant

Tryout title code

Linux MySQL implements root user login without password

Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance

freeswitch使用mod_shout模块播放mp3

AutoCAD C# 多段线自相交检测
随机推荐
Working principle of es9023 audio decoding chip
easyui 重置多条件查询
基本类型和包装类的区别
Linked list (II) - Design linked list
Boost the rising point | yolov5 combined with alpha IOU
Sharing tips for efficient scripting
JSP
Yolov5 adds a small target detection layer
No one can only use foreach to traverse arrays, right?
FPGA - 7系列 FPGA SelectIO -07- 高级逻辑资源之ISERDESE2
【星海出品】 运维巡检合集
SQL and list de duplication
Interpretation of Blog
Eyebeam advanced settings
Online facing such an online world, the only limitation is our imagination
Speech enhancement - spectrum mapping
代码没写错,渲染页面不显示原因
freeswitch使用mod_shout模块播放mp3
【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
微信小程序编译页面空白bug的原因