第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

js入門篇最后一個(gè)綜合練習(xí),求大神指點(diǎn)我錯(cuò)在那

?var a1=document.getElementById("txt")

? function color(){

? ? ? a1.style.color="red";

? ? ? a1.style.backgroundColor="#ccc";

? }

? function width(){

? ? ? a1.style.height="300px";

? ? ? a1.style.width="200px";

? }

? function hide(){

? ? ? a1.style.display="none";

? }

? function display(){

? ? ? a1.style.display="block";

? }

? function confirm("確定要取消設(shè)置嗎?"){

? ? ??

? ? ?

? ? a1.style.height="400px";

? ? a1.style.width="600px";

? ? a1.style.border="#333 solid 1px";

a1.style.padding="5px";

? }


正在回答

2 回答

//定義"取消設(shè)置"的函數(shù)

function change_set(){

? ? var sse=confirm("取消設(shè)置?");

? ? if(sse==true){ ? ? ? ?

? ? ? ? var s=document.getElementById("con");

? ? ? ? s.removeAttribute("style");

var h=document.getElementById("txt");

h.removeAttribute("style");

? ? } ? else {

alert("取消了");

}?

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

function confirm(){

? ? var a=confirm("是否取消設(shè)置");

? ? if(a==true){

? ? ? ? txt.style.color="auto";

? ? ? ? ?txt.style.width="600px";

? ? ? ? ? txt.style.height="400px";

? ? ? ? ? ?txt.style.display="block";

? ? ? ? ??? }

這里有個(gè)判斷,所以要加個(gè)if語句判斷,提示那里說確認(rèn)了才恢復(fù)默認(rèn)的,


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

js入門篇最后一個(gè)綜合練習(xí),求大神指點(diǎn)我錯(cuò)在那

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)