此问题特定于Internet Explorer。该图标在chrome中可以正常工作。我有一个与旧版应用程序一起运行的角度应用程序。当我从旧版应用程序导航到角度应用程序时,图标在Internet Explorer中按预期显示,但是当我在角度应用程序中导航时,图标消失了。
<link rel="icon" type="image/x-icon" href="https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon.png?v=c78bd457575a" />
<link rel="shortcut icon" type="image/x-icon" href="https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon.png?v=c78bd457575a" />
Run Code Online (Sandbox Code Playgroud)
我尝试了完整路径,相对路径以及CDN,但似乎没有任何效果。