当前位置:网站首页>InfoQ geek media's 15th anniversary solicitation |position:fixed virtual button cannot take effect after being triggered. Problem analysis and Solution Exploration
InfoQ geek media's 15th anniversary solicitation |position:fixed virtual button cannot take effect after being triggered. Problem analysis and Solution Exploration
2022-06-12 10:50:00 【InfoQ】
One 、 Preface
uni-app
.footer {
position: fixed;
width: 100%;
bottom: 0;
height: 120rpx;
justify-content: center;
align-items: center;
border-top: 1rpx solid #F0F0F0;
background: #ffffff;
}
Two 、 Cause analysis and solutions
CSShideFlag: true,
hideClass: 'hide'
<view class="footer" :class="hideFlag ? hideClass : ''">
<view @click="btnClick" class="btn" :class="{'btn-disable': btnDisabled}"> Submit </view>
</view>
onLoad() {
uni.onKeyboardHeightChange(res => {
// Virtual key hidden
if (res.height === 0) {
this.hideFlag = true;
} else {
// The virtual key pops up
this.hideFlag = false;
}
})
},
CSS.hide {
position: fixed;
bottom: 0;
}
3、 ... and 、 Extended reading uni-app Version check pop-up removal

SDKHBuilderX- Find... In the project
manifest.jsonThe configuration file ;
- Click the source view ;
- find
app-plusConfiguration node ;
- Find the following
compatibleField ( Add if not ), Add a code that ignores the prompt
"ignoreVersion": true //true Indicates that the version check prompt box is ignored ,HBuilderX1.9.0 And above support
"compatible" : {
"ignoreVersion": true //true Indicates that the version check prompt box is ignored ,HBuilderX1.9.0 And above support
},
Four 、 Expanding reading
- 《Vue Advanced ( Yaowujiu ): Dynamic styling》
边栏推荐
- PHP download station B video
- AcWing 135. 最大子序和(前缀和 + 单调队列求定长区间最小值)
- 分布式存储探索
- Create vite source code analysis
- Binassii module - converting between binary and ASCII
- Common port description
- How the ArrayList collection implements ascending and descending order
- Flex layout
- The solution of Lenovo notebook ThinkPad t440 WiFi dropping all the time
- Reverse analysis of Huawei housekeeper software [transfer]
猜你喜欢

A snare - Cookie spoofing

Leetcdoe 2037. 使每位学生都有座位的最少移动次数(可以,一次过)

The most detailed explanation of the top ten levels of sqli labs platform

Leetcode 2169. Get operands of 0

M-arch (fanwai 12) gd32l233 evaluation -cau encryption and decryption (tease Xiaobian)

Global and local existence of array, integer and character variables

Malicious code analysis practice - lab03-03 Exe basic dynamic analysis

人脸识别pip 安装dlib库失败

AcWing 131. 直方图中最大的矩形(单调栈经典运用 模板)

M-Arch(番外13)GD32L233评测-来点音乐
随机推荐
FPGA-按键实验
tensorflow 2.x 多分类混淆矩阵及评价指标计算方法(精确率、召回率、f1分数)
IIS add MIME type
PHP string encryption and decryption
PHP: seven cattle cloud upload file
Summary method of lamp environment deployment
Tp6+memcached configuration
On 3dsc theory and application of 3D shape context feature
[machine learning] practice of logistic regression classification based on Iris data set
元宇宙链游与传统游戏的区别
Is the acceptance standard a test case?
Index query efficiency of MySQL
Class. Forname connection MySQL driver keeps throwing classnotfoundexception exception solution
How to play the 618 super cat games on Taobao? Here comes the introduction to the overall activities of the Super Cat Games
Leetcode 2169. Get operands of 0
AcWing 131. 直方图中最大的矩形(单调栈经典运用 模板)
MYSQL——内置函数
Pseudo static setting of access database in win2008 R2 iis7.5
The name of a great man
(三十七)Bee如何同时使用不同数据源实例