IE和Firefox中的javascript故障 [英] javascript malfunction in IE and firefox

查看:80
本文介绍了IE和Firefox中的javascript故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个javascript代码,但它仅适用于IE和Chrome,而不适用于Firefox。我的意思是,当我点击按钮来调用该函数时,在firefox中我看不到任何动作(!)


另一方面,背景图像只显示在firefox而不是IE中。


这些不一致的来源是什么?

I have written a javascript code but it works only in IE and chrome and not in firefox. I mean, when I click the button to call the function, in firefox I see no action (!)

On the other hand the background image is displayed only in firefox and not in IE.

What is the source of these inconsistencies?

推荐答案

浏览器的行为并不一样,但通常有助于在可能的情况下编码标准。发布你的代码,否则我们不知道可能导致问题的原因。
Browsers don''t all behave the same, but it usually helps to code to standards where possible. Post your code, otherwise we''d have no idea what might be causing the problem.


我认为这是一个普遍的问题。这是代码。谢谢,

I thought it is a general problem. Here is the code. Thanks,

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


如果它是calc()函数'不工作,我需要看到这一点。你可以使用代码标签发布吗。
If it''s the calc() function that''s not working, I''ll need to see that. Can you post that using code tags please.


这篇关于IE和Firefox中的javascript故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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