摘要: console.log(document.styleSheets); 获取结果如下: console.log(document.styleSheets[0].cssRules);console.log(document.styleSheets[0].cssRules[0]);添加css样式dom.style['width'] = '120px';dom.style.width = '120px'; 阅读全文
posted @ 2012-09-11 19:11 cheng1234xiang 阅读(284) 评论(0) 推荐(0) 编辑