I cannot display an image with an absolue path :

≡放荡痞女 提交于 2019-12-11 03:19:04

问题


here is my code, why cant i disaply this image :

<img src="file:///C:/Users/myname/Documents/WWWDIR/resources/files/users/logo.jpg" alt="photo2" border="0"/>

i see only the alt text, but i am able to see the image in firebug. any idea?


回答1:


If this is from a remote (http://) page, it is by design: You can't link to local resources from remote pages in modern browsers any more. See details for each browser here.



来源:https://stackoverflow.com/questions/5284541/i-cannot-display-an-image-with-an-absolue-path

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