6
uniapp开发app,手机状态栏问题挡住问题,uni app 刘海屏适配
source link: https://blog.p2hp.com/archives/8524
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
uniapp开发app,手机状态栏问题挡住问题,uni app 刘海屏适配
问题:在使用uniapp开发手机App时,因为HBuildX创建的应用默认是沉浸式样式,如果去除自带的导航栏之后,页面会直通手机顶部状态栏,解决办法如下:
方法1:使用uniapp官方文档提供的解决方案 https://uniapp.dcloud.io/collocation/pages?id=customnav
方法二:配置mainfest.json来关闭沉浸式。打开应用的manifest.json文件,打开源码视图,app-plus 下添加 statusbar >immersed节点并设置值为false
"app-plus" : { "statusbar": { "immersed": false }, } 方法二,测试成功!
标签: APP
一 | 二 | 三 | 四 | 五 | 六 | 日 |
---|---|---|---|---|---|---|
« 4月 | ||||||
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- admin发表在《博客声明》
- ke发表在《使用FFMPEG生成HLS》
- XRumerTest发表在《Ubuntu 命令技巧》
- order online canada发表在《PHP 知识补全 —— 生成器 (generator)和协程的实现》
- manicure发表在《PHP 7 性能改进 (1/5): Packed arrays》
- James发表在《php实现协程,真正的异步》
- https://www.viagrasansordonnancefr.com/achat-sildenafil-citrate-bodybuilding/发表在《文件服务器集群 采用Rsync+sersync同步主从文件FTP》
- ssss发表在《PHP 知识补全 —— 生成器 (generator)和协程的实现》
- manicure发表在《PHP 7 性能改进 (1/5): Packed arrays》
- 聂永发表在《Tsung笔记之主从资源协调篇》
- Apache (16)
- Linux (141)
- Mac OS (16)
- Mysql (191)
- Nginx (66)
- Nosql (44)
- PHP (605)
- Vim (6)
- web前端 (144)
- Wordpress (4)
- 个人日志 (29)
- 云计算 (2)
- 人工智能 (7)
- 创业 (10)
- 工具 (55)
- 建站 (74)
- 开源 (14)
- 收费 (10)
- 架构 (113)
- 概念 (118)
- 物联网 (18)
- 移动互联网 (53)
- 编程 (180)
- 趋势 (6)
日志总数:1891篇 评论总数:90条
分类总数:25个 标签总数:303个
友情链接:8个 网站运行:3739天
最后更新:2022年4月29日
分类总数:25个 标签总数:303个
友情链接:8个 网站运行:3739天
最后更新:2022年4月29日
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK