最后一個取消設置怎么沒效果
為什么最后一個沒反應呀 function clear() { ? ?var ad=document.getElementById("txt"); ? ?var c=confirm("確認清除所有設置嗎?"); ? ?if(c==true) ? ?{ ? ? ? ?ad.removeAttribute("style"); ? ?}
為什么最后一個沒反應呀 function clear() { ? ?var ad=document.getElementById("txt"); ? ?var c=confirm("確認清除所有設置嗎?"); ? ?if(c==true) ? ?{ ? ? ? ?ad.removeAttribute("style"); ? ?}
2016-06-02
舉報
2016-06-02
function resettext(){
? ? var mychose = confirm();
? ? if(mychose==true){
? ? ? ?mydiv.removeAttribute("style");
? ? }
}
//注意字符 ?不要拼錯?。?!
2016-06-02
?var tt=confirm("您真的要取消設置?");
? ? ? ? if(tt==true)
? ? ? ? {
? ? ? ? ? ?document.getElementById("txt").style="";
? ? ? ? }
? ? ? ? else
? ? ? ? {}
2016-06-02
function res(){
? ? var con=confirm("是否恢復原始值?");
? ? if(con==true){
? ? ? ? var myChar5=document.getElementById("txt");
? ? ? ? myChar5.removeAttribute("style");
? ? }測試可以啊
2016-06-02
ad.removeAttribute("style"); 這個style是什么,自定義的嗎