恢復(fù)默認(rèn)能用className=“txt”嗎
恢復(fù)默認(rèn)設(shè)置用 ? ?function resetstyle() { ? ?var x=confirm("是否恢復(fù)默認(rèn)設(shè)置?") ? ?if(x==true) ? ?{ ? ? ? ?idtxt.className="txt"; ? ?} }怎么沒(méi)有用
恢復(fù)默認(rèn)設(shè)置用 ? ?function resetstyle() { ? ?var x=confirm("是否恢復(fù)默認(rèn)設(shè)置?") ? ?if(x==true) ? ?{ ? ? ? ?idtxt.className="txt"; ? ?} }怎么沒(méi)有用
2016-06-15
舉報(bào)
2016-06-15
? function f5(){
? ? ?var p = document.getElementById("txt");
? ? ?p.removeAttribute("style");
? }
? ? <input type="button" value="取消設(shè)置" onclick="f5()">
2016-06-15
?把 idtxt.className="txt";改成document.write("你默認(rèn)的設(shè)置");
2016-06-15
你前面的代碼是什么?