做頁面的時候我們做好pC端頁面時,因編輯那邊需求,在手機端頁面也應該是縮小版,不能亂的。在網上找了各種解決方案,經實驗,這種是可以的:
在head里邊加上這兩句meta
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
另外有的頁面在手機端只顯示一半的時候,你可以試試把body的百分比寬度設置一下。