我试图在我的iPhone Web应用程序上设置全屏模式,我已经阅读了苹果文档中关于“apple-mobile-web-app-capable”元标记的说明,但它无法正常工作,您能帮忙吗?谢谢。
我试图在我的iPhone Web应用程序上设置全屏模式,我已经阅读了苹果文档中关于“apple-mobile-web-app-capable”元标记的说明,但它无法正常工作,您能帮忙吗?谢谢。
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
确保你按照Bala Clark提到的去做
值得一提的是,只有在将应用程序保存到主屏幕并从那里启动时,这些标记才起作用。
<body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);">