【问题标题】:Images not showing when deployed to github pages部署到 github 页面时不显示图像
【发布时间】:2021-10-30 15:44:00
【问题描述】:

我在 github 页面上部署的应用程序版本有问题,我收到损坏的图像

github页面链接:https://moeabraham.github.io/module-1-proj/ github链接:https://github.com/moeabraham/module-1-proj

【问题讨论】:

    标签: javascript html css image github


    【解决方案1】:

    图片标签上有一个额外的/。 从一开始就删除它应该可以工作。

    你目前有这个:

    <img src="/images/juve.svg" class="rounded static-img" name="juventus">
    

    改用这个:

    <img src="images/juve.svg" class="rounded static-img" name="juventus">
    

    【讨论】:

      猜你喜欢
      • 2019-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-25
      • 1970-01-01
      • 1970-01-01
      • 2013-02-19
      • 2020-08-10
      相关资源
      最近更新 更多