How to displayimage from google drive at page.html?

流过昼夜 提交于 2021-01-29 07:23:39

问题


i trying use image from google drive at my html-page, i shared image and copied link to file. and pasted it to image tag:

<img ng-src="https://drive.google.com/open?id=0B0etQtBsI2KmVGVmYjNOSS15VVk" />

but it don't displays:

may be somebody knows how i can resolve it ? Thanks for your answers!


回答1:


That won't work, the link you are using is an html page.

Taken from question Displaying files (e.g. images) stored in Google Drive on a website

Replace the open part of the link with uc and it will work. It will become <img src="https://drive.google.com/uc?id=0B0etQtBsI2KmVGVmYjNOSS15VVk" />



来源:https://stackoverflow.com/questions/38490651/how-to-displayimage-from-google-drive-at-page-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!