在safari中显示本地磁盘的图像
我的页面中有这个标签,它运行在localhost:3000 < img id =img1src =file:/// Users / michal / Desktop / Picture 1.pngwidth =400height =200>
图像确实存在但不显示。如果我将路径从src属性放入地址栏图像被加载但它在img标签中不起作用,甚至在iframe标签中也是如此。我在Mac上使用Safari 4。我错过了什么或根本不可能吗?谢谢。
I have this tag in my page that runs on localhost:3000 <img id="img1" src="file:///Users/michal/Desktop/Picture 1.png" width="400" height="200">
image do exists but it is not displayed. if i put path from src attribute into address bar image is loaded but it doesn't work in img tag not even in iframe tag. I'm using Safari 4 on Mac. Am I missing something or it is not possible at all? Thanks.
这是一个安全功能..在任何平台上的任何浏览器中都无法实现。
That's a security feature .. it isn't possible in any browser on any platform.