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

為了賬號安全,請及時綁定郵箱和手機立即綁定

最后那個取消設置怎么改都不對?大家?guī)臀铱纯茨?/h1>

? <form>

? <!--當點擊相應按鈕,執(zhí)行相應操作,為按鈕添加相應事件-->

? ? <input type="button" value="改變顏色" onclick="yanse()">??

? ? <input type="button" value="改變寬高" onclick="gao()">

? ? <input type="button" value="隱藏內(nèi)容" onclick="hide()">

? ? <input type="button" value="顯示內(nèi)容" onclick="nohide()">

? ? <input type="button" value="取消設置" onclick="quxiao()">

? </form>

? <script type="text/javascript">

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

//定義"改變寬高"的函數(shù)

function yanse(){


mychar.style.color="blue";

mychar.style.backgroundColor="yellow";

}

//定義"改變寬高"的函數(shù)

function gao(){

mychar.style.width="400px";

mychar.style.height="200px";

}

//定義"隱藏內(nèi)容"的函數(shù)

function hide(){

mychar.style.display="none";

}


//定義"顯示內(nèi)容"的函數(shù)

function nohide(){

mychar.style.display="block";

}


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

function quxiao(){

var wenti=confirm("是否取消設置?");

if(wenti==ture){

mychar.removeAttribute('style');

}


}

? </script>


正在回答

2 回答

true寫成了ture

0 回復 有任何疑惑可以回復我~
??<script?type="text/javascript">var?mychar=document.getElementById("txt");	//定義"改變寬高"的函數(shù)		function?yanse(){		mychar.style.color="blue";		mychar.style.backgroundColor="yellow";	}//定義"改變寬高"的函數(shù)	function?gao(){	mychar.style.width="400px";	mychar.style.height="200px";	}//定義"隱藏內(nèi)容"的函數(shù)	function?hide(){		mychar.style.display="none";	}//定義"顯示內(nèi)容"的函數(shù)	function?nohide(){		mychar.style.display="block";	}//定義"取消設置"的函數(shù)	function?quxiao(){	if(confirm("是否取消設置?"));	{	mychar.style="";	}	}??</script>

? <script type="text/javascript">

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

//定義"改變寬高"的函數(shù)

function yanse(){


mychar.style.color="blue";

mychar.style.backgroundColor="yellow";

}

//定義"改變寬高"的函數(shù)

function gao(){

mychar.style.width="400px";

mychar.style.height="200px";

}

//定義"隱藏內(nèi)容"的函數(shù)

function hide(){

mychar.style.display="none";

}


//定義"顯示內(nèi)容"的函數(shù)

function nohide(){

mychar.style.display="block";

}


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

function quxiao(){

if(confirm("是否取消設置?"));

{

mychar.style="";

}

}

? </script>

終于成了

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

最后那個取消設置怎么改都不對?大家?guī)臀铱纯茨?/h1> 我要回答 關注問題

微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號