开发者

<img src> not working with google chrome

开发者 https://www.devze.com 2023-02-19 15:22 出处:网络
hi i m not able to load an image in chrome usingimg 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 instea

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

精彩评论

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