这是我在index.html的头部所拥有的内容:
如果我想通过苹果设备将网页添加到主屏幕,iPhone会将截图作为图标,即使我已经按照苹果在https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html上所描述的在index.html中添加了图标。那么我错过了什么,或者这不适用于将href指向assets而不是主文件夹的情况?
这是我在index.html的头部所拥有的内容:
<head>
<meta charset="utf-8">
<title>MeasurementProtocols</title>
<base href="/index.html">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="./assets/icons/apple/touch-icon-ipad.png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="manifest" crossOrigin="use-credentials" href="manifest.json">
<link rel="apple-touch-icon" href="./assets/icons/apple/touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="120x120" href="./assets/icons/apple/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="152x152" href="./assets/icons/apple/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="180x180" href="./assets/icons/apple/touch-icon-ipad-retina.png">
<meta name="theme-color" content="#1976d2">
</head>
如果我想通过苹果设备将网页添加到主屏幕,iPhone会将截图作为图标,即使我已经按照苹果在https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html上所描述的在index.html中添加了图标。那么我错过了什么,或者这不适用于将href指向assets而不是主文件夹的情况?