Mozilla Firefox的兼容性 - 用于div标签 [英] Compatibility for Mozilla Firefox - for div tag

查看:64
本文介绍了Mozilla Firefox的兼容性 - 用于div标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我使用div标签显示上传的图片。在更改浏览按钮时,将调用一个名为showFile()的函数。要上传的图像显示在名为imgdiv的div标签中。使用IE浏览器可以正常工作。但是在Firefox中,图像不会显示。如果使用带有Safari浏览器的MAC OS,它会显示一个''问号'而不是图像。

Hi,

I am using div tag for displaying an uploaded image. On change of ''browse'' button, a function called showFile () will be called. The image to be uploaded is displayed in the div tag named "imgdiv".This works fine using IE.But in firefox, the image is not displayed. If MAC OS with Safari browser is used, its displaying a ''question mark'' instead of image.


展开 | 选择 | 换行 | 行号

推荐答案

欢迎来到TSDN!


问题不在于div标签,而在于图像源。它是一个本地文件,因此JavaScript无法访问它。
Welcome to TSDN!

The problem is not with the div tag, but with the image source. It''s a local file, so JavaScript can''t access it.


但是同样的功能在Internet Explorer中正常工作。如果img src ..问题如何在IE中工作?
But the same function is working fine in Internet Explorer. If the img src ..is the problem how it will work in IE?


ya ...我在回复中指定了wat ..谢谢你
ya...i got wat is specified in the reply..Thank You


这篇关于Mozilla Firefox的兼容性 - 用于div标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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