txt.removeAttribute("style");怎么用不了?
?var messagebox;
? ? if(messagebox==confirm()){
? ? ? ? txt.removeAttribute("style");
? ? }
點確定沒有效果
?var messagebox;
? ? if(messagebox==confirm()){
? ? ? ? txt.removeAttribute("style");
? ? }
點確定沒有效果
2015-04-23
舉報
2015-10-29
//定義"取消設置"的函數
function mydelete(){
? ?var mydelete=confirm("是否取消設置?");
? ?if(mydelete==true){
? ? ? ?var deley=document.getElementById("txt");
? ? ? ?deley.removeAttribute("style"); ?//設置恢復原始值
? ?}
}
2015-05-28
txt是id,你要用你調用:
例如:var a=document.getElementById("txt"))
? ? ? ? ?...
? ? ? ? var messagebox=cofirm("是否要取消設置?");
? ? ? ? if(messagebox==true){
? ? ? ? a.removeAttribute("style");
? ? ? ? }
2015-04-24
messagebox == confirm() 有問題
2015-04-23
看他報什么錯了