GitHub页面上没有显示我的项目中的图片

huangapple go评论52阅读模式
英文:

GITHUB pages noe showing images on my project

问题

我在我的Github项目中添加了一个项目网站。但是所有的照片在网站中都没有显示。

我使用的代码是:
<img src="/images/image-daniel.jpg" alt="">

我之前看到一些解决方案并更新了我的代码为:
<img src="images/image-daniel.jpg" alt="">
但是当我检查元素时,它仍然显示以下代码:
<img src="/images/image-daniel.jpg" alt="">

英文:

I added a project site to my Github project. But all the photos are not displaying in the site.

The Code I used is
<img src="/images/image-daniel.jpg" alt="">

I saw some solutions before and updated my code to
<img src="images/image-daniel.jpg" alt="">
But when I go to the inspect It still shows the code
<img src="/images/image-daniel.jpg" alt="">

答案1

得分: 0

删除整个项目从Github并将src属性更新为<img src="images/image-daniel.jpg",然后再次上传项目。

英文:

Remove the entire Project from Github and update the src attribute to &lt;img src=&quot;images/image-daniel.jpg&quot; and upload the Project again .

huangapple
  • 本文由 发表于 2023年5月29日 03:54:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76353348.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定