github页面图像未显示

st4*_*gut 0 github angularjs

我的图像不会显示在Github Pages的Angular 2应用程序中。我可以在应用程序的开发过程中看到图像,但是现在相对链接返回错误:Failed to Load Resource正在检查。

来自开发的图像链接如下所示:

/assets/images/juno.gif

我尝试从回购中复制路径,但该图像仍未显示

mybiography / src / assets / images / juno.gif

我还尝试将github链接复制到图像文件,但是我的Angular CLI服务将我重定向回应用程序的主页。

https://github.com/st4rgut22/mybiography/blob/master/src/assets/images/juno.gif

请告知我该怎么做,这是指向下拉菜单时图像无法显示的页面的链接:https : //st4rgut22.github.io/mybiography/work

Saj*_*han 5

当使用相对路径时,只需使用 ./

更改src="/assets/images/rot.gif"src="./assets/images/rot.gif"

NB ./表示当前位置