当我将站点部署到github时,仍然显示所有图像,但有一个图像抛出错误:
Failed to load resource: the server responded with a status of 404 ()
即使它们都有相同的路径约定(即
images/img-1.png
,
images/img-2.png
……)
文件夹结构:
app
âââ index.html
âââ images
â âââ armin.png
â âââ arrows.svg
â âââ illumi.png // error
... other images
Paths:
<img src="images/armin.png"> <!-- Works -->
<img src="images/illumi.png"> <!-- doesn't work! -->
为什么会这样,怎么解决?