GitHub 图像出现在 ReadMe.md 中,而不是在已发布的页面中

GitHub images appear in ReadMe.md, not in published page

在 GitHub,我创建了一个 ReadMe.md 和屏幕截图

但是当我发布网站时,它没有显示图像。我用了

![alt tag](https://raw.github.com/username/projectname/branch/path/to/img.png)

<img src="https://raw.github.com/username/projectname/branch/path/to/img.png" alt="https://raw.github.com/username/projectname/branch/path/to/img.png">

但没有任何效果。我可以在 ReadMe.md 和网页上显示的位置插入什么格式的图像?

Link ReadMe.md: https://github.com/Sonihal/moveclient/blob/master/README.md

Link转至网页:http://sonihal.github.io/moveclient

您的网站正在尝试从错误的位置加载图像link:

<img src="https://github.com/Sonihal/moveclient/blob/master/group_name_and_id.JPG" alt="https://github.com/Sonihal/moveclient/blob/master/group_name_and_id.JPG">

您应该更新它以在 github:

中使用 raw 图片 link

https://raw.githubusercontent.com/[USER]/[REPO]/[BRANCH]/[PATH_TO_IMAGE]

示例:https://raw.githubusercontent.com/Sonihal/moveclient/master/group_name_and_id.JPG

Readme.md 文件中,你可以同时使用两者,因为它似乎 Github markdown 理解它并自动包装它以获取图像。