摘要: 方式一、el.setAttribute('class','a'); .a{ color: red; } #id box var box = document.getElementById('box'); box.setAttribute('class','a'); IE6/7 : div背景色不是红 阅读全文
posted @ 2019-12-20 10:45 Mr.渣、 阅读(2636) 评论(0) 推荐(0) 编辑