HTML img标记不显示图像 [英] HTML img Tag Not Displaying Image
本文介绍了HTML img标记不显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码中有一个img标签:
I have an img tag in my code:
<img src="P:\MY DOCUMENTS\Visual Studio 2010\Projects\WebApp\Trends\GreenUp.jpeg" />
但图像不显示。标签的语法是正确的,路径是正确的,并且存在GreenUp.jpeg,我想不出其他任何东西来检查。我在Firefox中显示网页,我发现一些文章说FF与.jpeg文件有问题 - 但在这里似乎并不是这样。
But the image is not displaying. The syntax of the tag is correct and the path is correct and GreenUp.jpeg exists and I can't think of anything else to check. I am displaying the web page in Firefox and I found some articles saying FF has problems with .jpeg files -- but that doesn't seem to be the case here.
任何建议赞赏。
问候。
推荐答案
file:///
前缀:
Try with the file:///
prefix:
<img src="file:///P:\MY DOCUMENTS\Visual Studio 2010\Projects\WebApp\Trends\GreenUp.jpeg" />
这篇关于HTML img标记不显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文