我正在尝试更改IOS Web应用程序的某些设置。
我将网页添加到主屏幕,使其成为“应用程序”。 我设法为应用程序设置了默认标题和默认图标。 我在尝试设置启动页面时遇到了麻烦(基本上是在加载网页之前显示的图像) 而且,每当我单击应将我重定向到另一页面的内容时,Iphone就会在Safari上将我重定向到打开该页面,而不会在同一“应用”上打开该页面。
<link rel="apple-touch-startup-image" href="StartupPage.jpg">
<meta name="apple-mobile-web-app-title" content="BarmanBot">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="Drink.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3)" href="StartupPage.png">
这是我到目前为止尝试过的代码。 最后一个链接标记应该是用于设置启动页面的标记。它不起作用。 我有Iphone 7+,因此设备尺寸也可以。
我还需要一种解决方案,在尝试在“应用”上打开新页面时,不要让iPhone在野生动物园中重定向我
有什么办法吗? 谢谢