gpt4 book ai didi

html - github页面和相关链接中的图像

转载 作者:技术小花猫 更新时间:2023-10-29 11:44:36 25 4
gpt4 key购买 nike

我创建了一个用户的 github 页面。

现在,假设我在存储库的根目录中有一个图像文件,位置为 Images/Emoticons/Cool.png

我尝试将该图像插入到我的主 Index.html 中文件。
我写 -
- <img src="\images\emoticons\cool.png">在线和离线都没有显示
- <img src="images\emoticons\cool.png">没有在线显示但我可以离线查看图像
- <img src="..\images\emoticons\cool.png">在线和离线都没有显示

应该怎么办?

最佳答案

由于该站点由 Linux 服务器提供服务,因此路径区分大小写。

为了完成这项工作,请在提供的 url 中将 emoticons 替换为 Emoticons

Screenshot of the repository

此外,在 URL 中,将反斜杠 (\) 替换为正斜杠 (/)。

下面的 HTML 代码应该可以正确显示图像

<img src="images/Emoticons/cool.png" alt="hi" class="inline"/>

关于html - github页面和相关链接中的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17141612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com