2011-03-23 50 views

回答

0

刚:

img.className = "check"; 

Internet Explorer可以变得很开心,当您尝试使用 “的setAttribute()” 的时候。我没有虚拟机上运行,​​但如果你有你的心脏上使用“的setAttribute()”设置,那么你可以尝试:

img.setAttribute("className", "check"); 

,但我不知道这会工作。

+0

做到了,干杯 – 2011-03-23 14:07:22

1

我相信,你需要使用:

img.className = "check"; 
相关问题