当前位置:网站首页>MUI框架开发app中出现的问题
MUI框架开发app中出现的问题
2022-08-10 22:34:00 【Serena_tz】
MUI框架开发app中出现的问题
在iPhone手机底部出现白色条
在页面添加样式:
html,
body {
position: relative;
z-index: 99999;
height: 100vh;
}
设置应用默认侧滑返回关闭Webview窗口
manifest.json文件中添加:
"plus" : {
"popGesture": "close", //设置应用默认侧滑返回关闭Webview窗口,"none"为无侧滑返回功能,"hide"为侧滑隐藏Webview窗口。参考https://ask.dcloud.net.cn/article/102
}
修改状态栏背景颜色
在需要修改的状态栏颜色的前一个页面引入MUI H5模板的common.js
// 点击跳转到修改密码页,并修改状态栏颜色
onForget(){
let wn=clicked('pages/forget_password/forget_password.html');
let bstyle=plus.navigator.getStatusBarStyle();
wn.addEventListener('close',function(){
//页面关闭后状态栏重置回以前的样式
plus.navigator.setStatusBarStyle(bstyle);
},false);
},
在需要修改状态栏颜色的页面修改状态栏颜色。
mui.plusReady(function() {
plus.navigator.setStatusBarStyle('dark');
})
边栏推荐
- CIKM2022 | Sequence Recommendation Based on Bidirectional Transformers Contrastive Learning
- 罗克韦尔AB PLC RSLogix5000中计数器指令使用方法介绍
- Redis
- LeetCode每日两题01:反转字符串 (均1200道)方法:双指针
- 腾讯云轻量应用服务器配置及建网站教程
- How many threads does LabVIEW allocate?
- RK3399平台开发系列讲解(内核驱动外设篇)6.35、IAM20680陀螺仪介绍
- web项目访问引用jar内部的静态资源
- The Thread State,
- file IO-buffer
猜你喜欢

leetcode:355. 设计推特

实例054:位取反、位移动

罗克韦尔AB PLC RSLogix5000中计数器指令使用方法介绍

2021 IDEA creates web projects

RK3399 platform development series explanation (kernel-driven peripherals) 6.35, IAM20680 gyroscope introduction

3598. Binary tree traversal (Huazhong University of Science and Technology exam questions)

二叉树 | 迭代遍历 | leecode刷题笔记

LabVIEW分配多少线程?

二叉树 | 翻转二叉树 | leecode刷题笔记

诺诚健华通过注册:施一公家族身价15亿 高瓴浮亏5亿港元
随机推荐
RK3399平台开发系列讲解(内核驱动外设篇)6.35、IAM20680陀螺仪介绍
二叉树 | 递归遍历 | leecode刷题笔记
2022年8月10日:使用 ASP.NET Core 为初学者构建 Web 应用程序--使用 ASP.NET Core 创建 Web UI(没看懂需要再看一遍)
RecyclerView滑动监听
实例055:按位取反
蓝帽杯 2022 web/misc writeup
2021 IDEA creates web projects
JS学习 2022080
Nodes in the linked list are flipped in groups of k
2022年8月的10篇论文推荐
How many threads does LabVIEW allocate?
解码2022中国网安强星丨正向建、反向查,华为构建数字化时代的网络安全防线
留言有奖|OpenBMB x 清华大学NLP:大模型公开课更新完结!
实例051:按位与
DC-8靶场下载及渗透实战详细过程(DC靶场系列)
美味石井饭菜
链表中的节点每k个一组翻转
Distribution Network Expansion Planning: Consider Decisions Using Probabilistic Energy Production and Consumption Profiles (Matlab Code Implementation)
How does the Weiluntong touch screen display the current value of abnormal data while alarming?
Qualcomm Platform Development Series Explanation (Application) Introduction to QCMAP Application Framework