当前位置:网站首页>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边栏推荐
- AutoCAD C# 多段线自相交检测
- 4~20ma input /0~5v output i/v conversion circuit
- Apple MDM bypass jailfree bypass MDM configuration lock free
- 阿里云短信服务(完整指南),短信发送功能实现。
- FPGA - 7 Series FPGA selectio -07- iserdese2 of advanced logic resources
- ImportError: cannot import name 'ensure_ dir_ Possible solutions for exists'
- 自定义 cube-ui 弹出框dialog支持多个且多种类型的input框
- YYGH-BUG-02
- Linked list (III) - reverse linked list
- AttributeError: 'callable_ iterator' object has no attribute 'next'
猜你喜欢

How the third-party libraries in cocoapod reference local header files

How to open UMD, KMD log and dump diagrams in CAMX architecture

Freeswitch使用originate转dialplan

图片按日期批量导入WPS表格

JDBC学习(一)——实现简单的CRUD操作

报错--解决core-js/modules/es.error.cause.js报错

Sharing tips for efficient scripting

FPGA - 7 Series FPGA selectio -09- io of advanced logic resources_ FIFO

FPGA - 7系列 FPGA SelectIO -09- 高级逻辑资源之IO_FIFO

AutoCAD C# 多段线自相交检测
随机推荐
重载,重写的区别,抽象类,接口的区别
OpenSCAP 简介
Iframe switching in Web Automation
MySQL(二)——基本操作
2 startup, interrupt and system call
Some habits of it veterans in the workplace
Error reporting - resolve core JS / modules / es error. cause. JS error
链表(二)——设计链表
Batch import of pictures into WPS table by date
Development trend of mobile advertising: Leveraging stock and fine marketing
FPGA - 7 Series FPGA selectio -08- oserdese2 of advanced logic resources
D3D11_ Chili_ Tutorial (3): design a bindable/drawable system
ThreadLocal
Yolact++ pytoch environment
Alibaba cloud SMS service (Complete Guide), SMS sending function implementation.
Install and manage multiple versions of PHP under mac
自定义 cube-ui 弹出框dialog支持多个且多种类型的input框
Note that JPA uses a custom VO to receive jpql query results
socke.io长连接实现推送、版本控制、实时活跃用户量统计
The custom cube UI pop-up dialog supports multiple and multiple types of input boxes