慕粉146
2016-08-11 23:21
怎么取消所有设置
var _txt= document.getElementById("txt"); _txt.removeAttribute("style"); //或者 _txt.style.cssText="null";
div=document.getElementById("div1");
div.removeAttribute("style");
JavaScript入门篇
738651 学习 · 9561 问题
相似问题
回答 1
回答 2
回答 4