我在驱动器中有图像,如何将其添加到Readme.md以便在自述文件中显示图像。
我曾尝试使用共享链接,但无法正常工作。
最佳答案
例如,我在Google驱动器上有a.jpg
。
Share...
Advanced
并将Who can access
选项更改为Public on the web - Anyone on the Internet
link to share
,您将得到类似https://drive.google.com/file/d/<FILE_ID>/view?usp=sharing
![image](https://drive.google.com/uc?export=view&id=<FILE_ID>)
示例:我在Google中有此octocat图像,其文件ID为
1913oZeBZPBNiUuk8gu3ZSbLBA2l_VQtG
。您可以在 Markdown 文件中甚至此答案中尝试![image](https://drive.google.com/uc?export=view&id=1913oZeBZPBNiUuk8gu3ZSbLBA2l_VQtG)
。希望这可以帮助。
关于github - 从Google云端硬盘将图像添加到GitHub Readme.md,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52063556/