简体   繁体   English

如何从另一个文件中获取资产并将其用作收藏夹图标?

[英]How can I get an asset from another file and use it as a favicon?

Basically, I have an assets file where I have all the assets of my project.基本上,我有一个assets文件,其中包含我项目的所有资产。 This is outside of my project folder.这是在我的项目文件夹之外。 I want to set an image from the assets file as my Favicon.我想将assets文件中的图像设置为我的 Favicon。 My current file structure looks something like this:我当前的文件结构如下所示:

  • Project项目
  • Assets资产
    • image.png图像.png
  • index.html索引.html

尝试这个:

<link rel="icon" href="Project/Assets/image.png" type="image/x-icon" />

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

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