Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html GitHub图像显示在ReadMe.md中,而不是发布页面中_Html_Image_Github_Webpage_Github Flavored Markdown - Fatal编程技术网

Html 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/

在GitHub上,我创建了一个带有屏幕截图的ReadMe.md

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

![替换标签](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此操作有效