简体   繁体   English

IE为什么不会显示此正确

[英]Why wont IE display this correct

http://jsfiddle.net/DalexL/NG6ty/ http://jsfiddle.net/DalexL/NG6ty/

The link above shows what I'm working with. 上面的链接显示了我正在使用什么。 I currently have a hot air balloon that needs to fly around the page. 我目前有一个热气球,需要在页面上飞行。 It works fine in Google Chrome but doesn't even move or anything inside of IE. 它在Google Chrome浏览器中工作正常,但在IE中甚至都不能移动。

What am I doing wrong here? 我在这里做错了什么?

In this line: 在这一行:

width: "+="+(newTop),

you should remove the comma 您应该删除逗号

width: "+="+(newTop)

IE usually is more tolerant to sloppy code, but in this case was working fine for other browsers, even though the extra comma was syntactically incorrect. IE通常更能容忍草率的代码,但是在这种情况下,即使语法上有多余的逗号,IE也可以在其他浏览器上正常工作。 Removing it worked fine for IE7. 删除它对于IE7来说效果很好。 I guess IE9 "forgives" this kind of syntax error 我猜IE9“原谅”了这种语法错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM