我发现很难将图像上传到我的 GitHub 自述文件页面和存储库。我已经尝试过在 YouTube 上看到的格式,但没有一个有效。
我尝试使用 []Alt 和 () 图像链接。我还尝试通过将屏幕截图拖到 GitHub 自述文件页面或存储库来上传图像。
最后,我尝试上传问题页面上的图片,并将图片地址复制到预定位置,但没有成功。它一直显示破裂的图像
我正在尝试找到一种上传图像而不显示破裂图像的方法。
一般 GitHub
README.md
使用 markdown。要包含图像,您可以使用以下语法:
Here's our logo (hover to see the title text):
Inline-style:
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
Reference-style:
![alt text][logo]
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
()
中的链接可以是相对的,就像在./docs/my-img.png
中一样,也可以通过像https://i.imgur.com/MwNdDFm.jpeg
这样的URL实现绝对链接
请参阅此处了解完整的 Markdown 备忘单