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