当前位置:网站首页>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边栏推荐
- Parsing ng template with let total in NZ Pagination
- Differences between overloads, rewrites, abstract classes and interfaces
- 5-minute NLP: summary of time chronology from bag of words to transformer
- High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
- @The reason why the Autowired annotation is empty
- idea根据数据库表生成实体类
- FPGA - 7系列 FPGA SelectIO -08- 高级逻辑资源之OSERDESE2
- Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
- FPGA - 7 Series FPGA selectio -08- oserdese2 of advanced logic resources
- Configure multiple database connections using the SSM framework
猜你喜欢

Freeswitch uses origin to dialplan

Freeswitch sets the maximum call duration

Unity packaging webgl uses IIS to solve the error

death_satan/hyperf-validate

FPGA - 7系列 FPGA SelectIO -08- 高级逻辑资源之OSERDESE2

CAD secondary development +nettopologysuite+pgis reference multi version DLL

Yolov5 adds a small target detection layer

Yygh-6-wechat login

D3D11_ Chili_ Tutorial (3): design a bindable/drawable system

语音增强-频谱映射
随机推荐
Create a gson object that formats the time zone. JSON parsing time formatting zoneddatetime
Alibaba cloud SMS service (Complete Guide), SMS sending function implementation.
FPGA - 7系列 FPGA SelectIO -09- 高级逻辑资源之IO_FIFO
Linked list (III) - reverse linked list
AutoCAD C polyline small acute angle detection
Select trigger event from easyUI drop-down box
AutoCAD C # Polyline Small Sharp angle Detection
Caused by: com. fasterxml. jackson. databind. Exc.invalidformatexception: exception resolution
Sharing tips for efficient scripting
Introduction to openscap
socke.io长连接实现推送、版本控制、实时活跃用户量统计
sql及list去重操作
链表(三)——反转链表
FPM tool installation
YOLOv5增加小目标检测层
Yolact++ Pytorch环境
ThreadLocal
Scripting and programming languages
FPGA - 7 Series FPGA selectio -08- oserdese2 of advanced logic resources
Yygh-6-wechat login