kis*_*ore 1 html css ios angular
当我尝试将 Angular Web 应用程序添加为从 iOS safari 到主屏幕的快捷方式时,它会作为应用程序页面的屏幕截图出现,尽管我在 index.html 中添加了 apple-touch-icon 链接。我的图像尺寸为 150*150,png。下面是我的 HTML 代码
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Insights</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="src/assets/icons/favicon-32x32.png">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="src/assets/icons/apple-touch-icon-150x150.png">
<meta name="theme-color" content="#1976d2">
</head>
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
经过一些研究发现,在下面的行中包含 src 是我的错误。
<link rel="apple-touch-icon" href="src/assets/icons/apple-touch-icon-150x150.png">
Run Code Online (Sandbox Code Playgroud)
将其更改为以下有效的
<link rel="apple-touch-icon" href="/assets/icons/apple-touch-icon-150x150.png">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2672 次 |
| 最近记录: |