Html GitHub图像显示在ReadMe.md中,而不是发布页面中
在GitHub上,我创建了一个带有屏幕截图的ReadMe.md 但是当我发布网站时,它没有显示图像。我曾经Html GitHub图像显示在ReadMe.md中,而不是发布页面中,html,image,github,webpage,github-flavored-markdown,Html,Image,Github,Webpage,Github Flavored Markdown,在GitHub上,我创建了一个带有屏幕截图的ReadMe.md 但是当我发布网站时,它没有显示图像。我曾经 ![替换标签](https://raw.github.com/username/projectname/branch/path/to/img.png) 及 但什么都不管用。我可以在ReadMe.md和网页上显示的位置插入什么格式的图像 链接ReadMe.md: 链接到网页:您的网站试图从错误的链接加载图像: <img src="https://github.com/Sonihal/
![替换标签](https://raw.github.com/username/projectname/branch/path/to/img.png)
及
但什么都不管用。我可以在ReadMe.md和网页上显示的位置插入什么格式的图像
链接ReadMe.md:
链接到网页:您的网站试图从错误的链接加载图像:
<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中的原始图像链接:
https://raw.githubusercontent.com/[用户]/[REPO]/[BRANCH]/[PATH\u TO\u IMAGE]
示例:https://raw.githubusercontent.com/Sonihal/moveclient/master/group_name_and_id.JPG
在
Readme.md
文件中,您可以同时使用这两个文件,因为Github markdown似乎理解它并自动将其包装以获取图像。您的网站试图从错误的链接加载图像:
<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中的原始图像链接:
https://raw.githubusercontent.com/[用户]/[REPO]/[BRANCH]/[PATH\u TO\u IMAGE]
示例:https://raw.githubusercontent.com/Sonihal/moveclient/master/group_name_and_id.JPG
在
Readme.md
文件中,您可以同时使用这两个文件,因为Github markdown似乎理解并自动包装它以获得图像。您使用的是https://github.com/Sonihal/moveclient/blob/master/group_name_and_id.JPG
在网页中。尝试将其更改为https://github.com/Sonihal/moveclient/raw/master/group_name_and_id.JPG
(将blob更改为raw)@DineiA.Rockenbach您正在使用的此工作https://github.com/Sonihal/moveclient/blob/master/group_name_and_id.JPG
在网页中。尝试将其更改为https://github.com/Sonihal/moveclient/raw/master/group_name_and_id.JPG
(将blob更改为raw)@DineiA.Rockenbach此操作有效