带有共享网络的Html Image src路径在Firefox中不起作用 [英] Html Image src path with shared network is not working in firefox
问题描述
在我的网页中,我使用了图片标签,src属性指向共享网络位置,即(/server/images/image1.png)。确切的脚本是< img src =file://///server/images/image1.png
。它在IE中工作正常。在firefox中,当我使用萤火虫它的显示图像调试,但它不显示在页面(用户视图)。即使它工作正常,当复制这个位置,并将其放置在Firefox的地址栏。使用img标签也会是什么问题也是什么我写了一个servlet,它使用Java文件流从局域网中读取文件,并设置它。
In My webpage i am using a image tag, the src attribute is pointing to shared network location ie (/server/images/image1.png). The exact script is "<img src="file://///server/images/image1.png"
. It is working fine in IE. In firefox, when I do debug using firebug its showing image, but it's not displayed in page (user view). Even it's working fine when copy this location and place it in firefox address bar. What will be the problem while using img tag also what is the solution for this? Thanks in advance.
I wrote a servlet which reads the file from LAN using Java File Stream and sets it in response and it does the trick. Thanks to all for valuable response.
这篇关于带有共享网络的Html Image src路径在Firefox中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!