Gok*_*027 9 github google-drive-api github-flavored-markdown
我在Drive中有图像,如何将其添加到Readme.md中以便在自述文件中显示图像.我曾尝试使用共享链接,但它无法正常工作.
Ech*_*han 25
例如,我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
示例:我在谷歌中有这个octocat图像,其文件ID是1913oZeBZPBNiUuk8gu3ZSbLBA2l_VQtG.您可以尝试使用降价文件,甚至可以尝试此答案.
希望这可以帮助.
image.jpg到您的 Google 云端硬盘get link右上角的按钮Anyone with the link<FILEID>如图所示(以蓝色突出显示),然后单击Done。在撰写本文时,可共享链接采用以下形式:https://drive.google.com/file/d/` `/view?usp=sharing
<FILEID>和锚标记在 markdown 中插入图像,如下所示:<a href="https://drive.google.com/uc?export=view&id=<FILEID>"><img src="https://drive.google.com/uc?export=view&id=<FILEID>" style="width: 650px; max-width: 100%; height: auto" title="Click to enlarge picture" />
请注意,文件 ID 中不应出现方括号“<”和“>”。图片的大小可以在style属性中根据需要调整宽度和高度来调整。单击渲染的图像会将其打开为其原始大小
| 归档时间: |
|
| 查看次数: |
3698 次 |
| 最近记录: |