Firefox不显示来自本地文件路径的图像 [英] Firefox doesn't show images from a local file path

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

问题描述

我在html中使用了< img> 标签来显示图片。图像显示在Internet Explorer 10中,但在Mozilla,Chrome中不可见。有人可以告诉我为什么?

I have used <img> tag in html for displaying images. The image gets displayed in Internet Explorer 10, but it is not visible in mozilla, chrome. Could someone please tell me the reason why?

    <img src="file:///d:/maruthi.jpg" style="width: 150px; height: 140px;" alt="Photo">


推荐答案

Chrome停止访问本地 file:// 默认情况下出于安全原因链接 http:// 页面。

Chrome stops access to local file:// links from with in http:// page for security reasons by default.

这篇关于Firefox不显示来自本地文件路径的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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