开发者

<img src> not working with google chrome

hi i m not able to load an image in chrome using img src="E:\pic1.jpeg" when i run this code in internet explorer its working bt not in chrome . on the other hand when i give the name of image instead of path in src then its working ...

plz开发者_运维知识库 help ... regards Prabjot


Chrome probably doesn't handle file system paths (or at least not without using file://). Even if this did work, that link would only work on your local machine as the person browsing your website wouldn't have an image at that location.

You should be using URLs for your resources (i.e. images), not file paths.


Have you tried using file:// to prefix your image local path?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜