当前位置:网站首页>On the H5 page, the Apple phone blocks the content when using fixed to locate the bottom of the tabbar
On the H5 page, the Apple phone blocks the content when using fixed to locate the bottom of the tabbar
2022-06-24 07:52:00 【Zhangxiaolang】
In the use of uni-app when , I wrote a bottom tabbar The navigation bar , There is tabbar The problem of blocking content , As shown in the figure below ;

At the beginning , Top box used padding-bottom Open the bottom box when you come , stay chrome View in browser , The effect is correct
But what? !!!
Once there is more task data , There will still be occlusion problems , And the occlusion problem is ios That is to say, opening the browser on Apple mobile phone does not achieve the desired effect ;
Baidu has queried documents for many times , No feasible solution has been found , Finally, the questions raised in the wechat Technology Group , It's OK , Three technology groups are just one of the eight classics that can give you answers , The rest is to ask you to go to Baidu ;
The solution is as follows
It's also very simple , But for me, a little white , It's been solved for a long time ;
Look at your layout 
My layout is that the content part is a box , Bottom tabbar It's a separate box , Then it was wrapped in a big box ;
<div>
<div> Content </div>
<tabbar> The navigation bar </tabbar>
</div>Because I use uni-app Written , Here is a rough list
In this layout , Use pseudo elements in the content section ::after{ }
Give the height of pseudo elements to and tabbar Of the same height , This opens the entire bottom box , That's it ios page tabbar The navigation bar is blocked !
It was a really good experience .
边栏推荐
猜你喜欢

解决错误: LNK2019 无法解析的外部符号
![[C language] system date & time](/img/de/faf397732bfa4920a8ed68df5dbc48.png)
[C language] system date & time

基于Distiller的模型压缩工具简介

Specify IP when calling feign interface

语料库数据处理个案实例(句子检索相关个案)

开放合作,共赢未来 | 福昕鲲鹏加入金兰组织

The two most frequently asked locks in the interview

Resolution error: LNK2019 unresolved external symbol

第 2 篇:繪制一個窗口

Alibaba cloud full link data governance
随机推荐
AWTK 最新动态:Grid 控件新用法
希尔伯特-黄变换
exness:鲍威尔坚持抗通胀承诺,指出衰退是可能的
Hilbert Huang Transform
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
Any remarks
Mousse shares listed on Shenzhen Stock Exchange: gross profit margin continued to decline, and marketing failed in the first quarter of 2022
The two most frequently asked locks in the interview
Introduction of model compression tool based on distiller
What is the lifecycle of automated testing?
Hongmeng OS development III
4-操作列表(循环结构)
没有专业背景,还有机会成为机器学习工程师吗?
Jenkins 太老了 试试它?云原生 CI/CD Tekton
Smart pointer remarks
鸿蒙开发四
Thread blocking
第 2 篇:绘制一个窗口
Thread considerations
Error "computing failed in `stat\u summary\u hex() `"