小白的博客

this my!

2008年2月19日

javascript中的setAttribute()浏览器的兼容性问题

摘要: 1.element要用getElementById or ByTagName来得到, 2.setAttribute("class", vName)中class是指改变"class"这个属性,所以要带引号。 3.IE中要把class改成className,.....IE不认class,所以最好写两句,都用上吧。 W3C DOM - {setAttribute()} setAttribute(stri... 阅读全文

posted @ 2008-02-19 09:09 baifan 阅读(2185) 评论(0) 推荐(0) 编辑

Dilectio Theme is created by: Design Disease brought to you by Smashing Magazine