【发布时间】:2019-09-06 02:15:05
【问题描述】:
我正在构建 PWA,发现滚动时很难隐藏 IOS Safari 导航栏(地址栏),我尝试了所有可用的解决方案,但不幸的是,没有任何帮助。有什么方法可以隐藏 iPhone (IOS 7+) safari 的滚动地址栏吗?
header.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;
footer.scss
position: absolute;
bottom: 0;
display: flex;
justify-content: space-around;```
router-outlet content has height: calc(100vh-64px)
Current output:

Expected:

【问题讨论】:
标签: angular typescript mobile-safari progressive-web-apps angular-pwa