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