[英]How to hide IOS safari address bar on scroll?
我正在構建PWA,發現很難在滾動時隱藏IOS Safari導航欄(地址欄),我嘗試了所有可用的解決方案,但不幸的是,沒有任何幫助。 有沒有辦法在滾動iPhone(IOS 7+)野生動物園時隱藏地址欄?
display: flex;
padding: 0 16px;
width: 100%;
align-items: center;
color: white;
position: absolute;
background-color: #353f50;
top: 0;
height: 64px;
z-index: 2;
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)
將此元標記添加到index.html的頭部
<meta name="apple-mobile-web-app-capable" content="yes">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.