我正在构建一个 PWA,发现很难在滚动时隐藏 IOS Safari 导航栏(地址栏),我尝试了所有可用的解决方案,但不幸的是,没有任何帮助。有什么方法可以隐藏 iPhone (IOS 7+) safari 滚动时的地址栏吗?
头文件.scss
display: flex;
padding: 0 16px;
width: 100%;
align-items: center;
color: white;
position: absolute;
background-color: #353f50;
top: 0;
height: 64px;
z-index: 2;
页脚.scss
position: absolute;
bottom: 0;
display: flex;
justify-content: space-around;```
router-outlet content has height: calc(100vh-64px)
Current output:
![Current](https://i.imgur.com/mapbX0i.jpg)
Expected:
![Expected](https://i.imgur.com/eCbCUUI.jpg)