关于JS中的getAttribute方法_百度知道
关于JS中的getAttribute方法width并不是img的属性style.width这样才能获取到。myimg1.setAttribute("style","width:10px;height:10px;border:solid ...
JS_attr函数 - somesayss - 博客园
JS_attr函数 /* * 考虑到getAttribute(),在IE6,7下对class有兼容性问题所以使用getAttributeNode(); * removeNamedItem(),在IE6,7下动态添加属性后,表现异常...