相对图像路径在FireFox中没有显示图像 [英] Relative Image Path not showing Image in FireFox

查看:127
本文介绍了相对图像路径在FireFox中没有显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Iframe打开一个html页面。 Html页面有一些文本和图像。



图像源是使用相对路径指定的,例如, .... \Images\Img1.jpeg。



它在IE和Chrome中运行良好。在Firefox中,图像路径变得像 -

http:// localhost:1657 / WebSite / Stories / kunwar /..% 5C ..%5CImages%5CStory_images%5Cimg1.jpeg



我在这里错过了什么?

解决方案

尝试使用正斜杠而不是反斜杠。

I am trying to open a html page using Iframe. The Html page has some text and Images.

The Image Source is specified using releative path for e.g. ....\Images\Img1.jpeg.

Its working fine in IE and Chrome. In firefox the Image Path is becoming like-

http://localhost:1657/WebSite/Stories/kunwar/..%5C..%5CImages%5CStory_images%5Cimg1.jpeg

What am I missing here?

解决方案

Try using forward slashes instead of backslashes.

这篇关于相对图像路径在FireFox中没有显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆