未从Dropbox中检索图像 [英] Image not being retrieved from Dropbox
问题描述
嗨!
我有一个图像滑块。当我尝试从我的服务器上检索图像时,图像正确显示。 ( http://stthomasmountmtc.org/index.html )
但是,当我尝试从Dropbox中检索相同的图像时,图像不显示/检索。 ( http://stthomasmountmtc.org/index1.html )
< img src =https://www.dropbox.com/s/woart55urbw792u/image1.jpgalt =image/>
当我打开 src
属性在浏览器中,可以看到图像,所以链接显然不会被破坏。请分享您的建议。
谢谢,
Samuel Mathews。
代码中的链接打开Dropbox的图库功能,这是一个HTML网页,而不是图像文件。该图片的直接链接是:
https://dl.dropboxusercontent.com/s/woart55urbw792u/image1.jpg
您应该始终在HTML中设置图片标签的来源到输出图像的URL - 而不是包含图像的网页。
Hi! I have an image slider. When I try toe retrieve the images from my server, the images are properly displayed. (http://stthomasmountmtc.org/index.html)
However, when I try to retrieve the same images from Dropbox, the images are not displayed/retrieved. (http://stthomasmountmtc.org/index1.html)
<img src="https://www.dropbox.com/s/woart55urbw792u/image1.jpg" alt="image" />
When I open the link in the src
attribute in the browser, the images can be seen, so the link is obviously not broken. Please share your suggestions.
Thanks, Samuel Mathews.
The link in your code opens the gallery feature of Dropbox, which is a HTML webpage, not an image file. The direct link for that image is:
https://dl.dropboxusercontent.com/s/woart55urbw792u/image1.jpg
You should always set the source of an image tag in HTML to an URL which outputs an image - and not a webpage containing an image.
这篇关于未从Dropbox中检索图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!