【问题标题】:Images not appearing in Github webpage图片未出现在 Github 网页中
【发布时间】:2021-07-18 21:43:30
【问题描述】:

标题似乎很清楚问题。 :-(
我的代码:

<img src="/images/bgm.png">

文件夹树

  • index.html
  • 图像
    • bgm.png

我尝试过的解决方案

我的 github 页面

页面代码

谢谢:-)

【问题讨论】:

    标签: html image github-pages


    【解决方案1】:

    图片的路径应该是“images/filename”而不是“../images/filename”

    Index.htmlimages 位于同一目录中,因此要访问同一目录中的内容,您无需添加“。”或“..”

    【讨论】:

      猜你喜欢
      • 2017-05-19
      • 2017-08-27
      • 1970-01-01
      • 2021-05-30
      • 2018-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-14
      相关资源
      最近更新 更多