问题
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