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