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

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

程序完全沒反應,我找了好長時間錯但是還是沒用,求大神幫忙看看啊QAQ

?</div>

? <form>

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

? ? <input type="button" value="改變顏色" ondick="set.changecolor()"> ?

? ? <input type="button" value="改變寬高"ondick="set.changewh()" >

? ? <input type="button" value="隱藏內(nèi)容" ondick="set.none()">

? ? <input type="button" value="顯示內(nèi)容"ondick="set.block()" >

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

? </form>

? <script type="text/javascript">

//定義"改變顏色"的函數(shù)

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

? ?var set={

? ? ? ? ?chengecolor:function(){

? ? ? ? ?txt.style.backgroundcolor="red";

txt.style.color="blue";

},

? ? ? ? ?changewh:function(){

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

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

? ? ? ? ?},

? ? ? ? ?none:function(){

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

? ? ? ? ?}, ??

? ? ? ? ?block:function(){

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

? ? ? ? ?},

? ? ? ? ?quxiao:function(){

? ? ? ? ? ? ?var xiaoxi=confirm("確定要取消設置嘛?");

? ? ? ? ? ? ? ? ? if(xiaoxi==true){

? ? ? ? ? ? ? ? ? ? ? txt.removeAttribute('style');

? ? ? ? ? ? ? ?}

? ? ? ? ?}

? ? }


正在回答

3 回答

沒有結整標簽啊</script>,還有ondick寫錯了吧應該有是onClick

?<form>

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

? ? <input type="button" value="改變顏色" onClick="set.changecolor()"> ?

? ? <input type="button" value="改變寬高"onClick="set.changewh()" >

? ? <input type="button" value="隱藏內(nèi)容" onClick="set.none()">

? ? <input type="button" value="顯示內(nèi)容"onClick="set.block()" >

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

? </form>

? <script type="text/javascript">

//定義"改變顏色"的函數(shù)

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

? ?var set={

? ? ? ? ?changecolor:function(){

? ? ? ? txt.style.backgroundColor="red";

txt.style.color="blue";

},

? ? ? ? ?changewh:function(){

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

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

? ? ? ? ?},

? ? ? ? ?none:function(){

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

? ? ? ? ?}, ??

? ? ? ? ?block:function(){

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

? ? ? ? ?},

? ? ? ? ?quxiao:function(){

? ? ? ? ? ? ?var xiaoxi=confirm("確定要取消設置嘛?");

? ? ? ? ? ? ? ? ? if(xiaoxi==true){

? ? ? ? ? ? ? ? ? ? ? txt.removeAttribute('style');

? ? ? ? ? ? ? ?}

? ? ? ? ?}

? ? }

</script>

</body>


1 回復 有任何疑惑可以回復我~
#1

一條馬賽克 提問者

。。。這么明顯的錯誤,我愣是沒看出來。好丟人啊。。。謝謝大家了啦
2016-03-28 回復 有任何疑惑可以回復我~

確實呢,居然寫成ondick。這錯誤真明顯

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

onClick 寫錯了?

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

舉報

0/150
提交
取消

程序完全沒反應,我找了好長時間錯但是還是沒用,求大神幫忙看看啊QAQ

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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