如何在page.html上显示来自Google驱动器的图像? [英] How to displayimage from google drive at page.html?
本文介绍了如何在page.html上显示来自Google驱动器的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在 html页面中使用 google驱动器中的图像,我共享图像并将链接复制到文件.并将其粘贴到 image 标签:
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" />
但它不会显示:
也许有人知道我该如何解决?感谢您的回答!
may be somebody knows how i can resolve it ? Thanks for your answers!
推荐答案
这不起作用,您使用的链接是html页面.
That won't work, the link you are using is an html page.
来自问题显示文件(例如图片)存储在网站上的Google云端硬盘中
用 uc
替换链接的 open
部分,它将起作用.它将变为< img src ="https://drive.google.com/uc?id=0B0etQtBsI2KmVGVmYjNOSS15VVk"/>
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" />
这篇关于如何在page.html上显示来自Google驱动器的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文