简体   繁体   English

我可以为 favicon 使用 angular 素材图标吗?

[英]can i use angular material icons for favicon?

Instead of my own image file, i would like to use standard material icons as favicon for my website.而不是我自己的图像文件,我想使用标准材料图标作为我网站的图标。

Is there any programmatic way of getting this done, instead of copying or making image files similar to those icons?是否有任何编程方式来完成此操作,而不是复制或制作类似于这些图标的图像文件?

In order to ensure that your favicon is compatible for all platforms you need to produce several different favicon file types.为了确保您的 favicon 与所有平台兼容,您需要生成几种不同的 favicon 文件类型。 For example if you only produce a favicon.png it will display in Google Chrome Desktop for Windows but it will not display in Google Chrome Mobile for Android.例如,如果您只生成一个 favicon.png,它将在 Windows 的 Google Chrome 桌面中显示,但在 Android 的 Google Chrome Mobile 中不会显示。

So what you end up having to do is create multiple favicons of various file type and resolution in order to ensure cross platform favicon compatibility.因此,您最终要做的是创建多个不同文件类型和分辨率的网站图标,以确保跨平台网站图标兼容性。

There is a link below that will generate the required favicons to ensure cross platform favicon compatibility.下面的链接将生成所需的网站图标,以确保跨平台网站图标兼容性。 It accepts an input of PNG, JPG, SVG.它接受 PNG、JPG、SVG 的输入。

You require:您需要:

Favicon PNG image for modern desktop browsers.

Favicon Apple Touch icon for mobile browsers.

Favicon icon (.ico) old browsers.

Favicon tile icon for internet explorer on Windows 8 and 10.

I know this is not quite what you are looking for but it should further elaborate on the complexity of favicons.我知道这不是您想要的,但它应该进一步详细说明网站图标的复杂性。

https://realfavicongenerator.net/ https://realfavicongenerator.net/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM