关于js在ie中有走马灯效果,到火狐和chrome就禁止不动了,下面是代码,请懂的看下,谢谢

2026-05-20 01:51:56
推荐回答(3个)
回答1:

document.all.l1_img_1.style.width = "1710px";
document.all.l1_img_2.style.width = "1710px";
-----------------------------
火狐和chrome不支持document.all请用document.getElementById、或document.getElementsByName

回答2:

html网页可以参考W3C标准 http://www.w3school.com.cn/w3c/w3c_html.asp

回答3:

将document.all改为document.getElementById("控件id")或者是document.getElementsByName("控件name")