摘要: 1. childNodes在ff中和ie的区别。
ff中的node(nodeType = 1)都是用textNode(nodeType = 3)分开的,而ie/op不是这样的。
content
在ff下,box1的childNodes为3个,ie下为1个。
2. 设置某个node对象的style class名称。
ie中要设置某个node的class用"className"作为attr来set或者get。
ff等其它的浏览器用"class"作为attr来set或者get。
代码:
阅读全文