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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

背景色不會(huì)變綠后不會(huì)消失?

背景色不會(huì)變綠后不會(huì)消失?

19990000 2017-09-29 23:32:02
<!DOCTYPE?html> <html?lang="en"> <head> ????<meta?charset="UTF-8"> ????<title>task</title> ????<style> ????????.box{ ????????????display:?flex; ????????????justify-content:?space-around; ????????????align-items:?center; ????????????border:2px?solid?#000; ????????} ????????.box-one{ ????????????width:100%; ????????????height:196px; ????????} ????????.box-two,.box-three,.box-four{ ????????????height:80%; ????????????margin:5px; ????????} ????????.wrap{ ????????????position:?relative; ????????????top:15px; ????????????left:50px; ????????} ????????.look,.search,.fun{ ????????????float:?left; ????????????margin-left:20px; ????????} ????</style> </head> <body> ????<div?class="box-one?box"?id="box-one"> ????????<span>1</span> ????????<div?class="box-two?box"> ????????????<span>1-1</span> ????????????<div?class="box-three?box"> ????????????????<span>1-1-1</span> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-1-1</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-1-2</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-1-3</span> ????????????????</div> ????????????</div> ????????????<div?class="box-three?box"> ????????????????<span>1-1-2</span> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-2-1</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-2-2</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-2-3</span> ????????????????</div> ????????????</div> ????????????<div?class="box-three?box"> ????????????????<span>1-1-3</span> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-3-1</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-3-2</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-1-3-3</span> ????????????????</div> ????????????</div> ????????</div> ????????<div?class="box-two?box"> ????????????<span>1-2</span> ????????????<div?class="box-three?box"> ????????????????<span>1-2-1</span> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-1-1</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-1-2</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-1-3</span> ????????????????</div> ????????????</div> ????????????<div?class="box-three?box"> ????????????????<span>1-2-2</span> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-2-1</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-2-2</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-2-3</span> ????????????????</div> ????????????</div> ????????????<div?class="box-three?box"> ????????????????<span>1-2-3</span> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-3-1</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-3-2</span> ????????????????</div> ????????????????<div?class="box-four?box"> ????????????????????<span>1-2-3-3</span> ????????????????</div> ????????????</div> ????????</div> ????</div> <!--控制--> ?<div?class="wrap"> ????????<div?class="look"> ????????????前序<input?type="checkbox"?class="top"?name="top"?value="qx"> ????????????后序<input?type="checkbox"?class="top"?name="top"?value="hx"> ????????????<button?type="button"?id="look-btn">遍歷</button> ????????</div> ????????<div?class="search"> ????????????<input?type="text"?class="search-text"> ????????????<button?type="button"?class="search-btn">查找</button> ????????</div> ????????<div?class="fun"> ????????????<button?type="button"?id="add">添加</button> ????????????<button?type="button"?id="del">刪除</button> ????????</div> ????</div> </body> <script?type="text/javascript"?src="main.js"></script> <script?type="text/javascript"?src="animate.js"></script> </html>var?time=0; var?flag=false; var?lookBtn?=?document.getElementById("look-btn"); var?root=?document.getElementById("box-one"); lookBtn.addEventListener("click",function(){ //通過(guò)name得到value值 //????通過(guò)switch循環(huán)一下 ????time=0; ????opt?=?getValue("top"); ????switch(opt){ ????????case?'qx': ????????????qx(root); ????????????break; ????????case?'hx': ????????????hx(root); ????????????break; ????} }); //通過(guò)name得到value值 function?getValue(name){ ????var?getName=document.getElementsByName(name); ????for(var?i=0;i<getName.length;i++)?{ ????????if?(getName[i].checked){ ????????????return?getName[i].value; ????????} ????} ????return?"undefined"; } function?visit(node){ ????time?+=400; ????node.style.backgroundColor?=?"#fff"; ????setTimeout(function(){ ????????node.style.backgroundColor?="#0f0"; ????},time); } //前序 function?qx(root){ ????if(root){ ????????visit(root); ????????var?children?=?root.getElementsByTagName("div"); ????????for(var?i=0;i<children.length;i++){ ????????????if(children[i].parentNode?==root){ ????????????????qx(children[i]); ????????????} ????????} ????} } //后序 function?hx(root){ ????if(root){ ????????var?children?=?root.getElementsByTagName("div"); ????????for(var?i=0;i<children.length;i++){ ????????????if(children[i].parentNode?==root){ ????????????????hx(children[i]); ????????????} ????????} ????????visit(root); ????} }
查看完整描述

2 回答

?
Gotta

TA貢獻(xiàn)53條經(jīng)驗(yàn) 獲得超16個(gè)贊

當(dāng)然是選擇原諒背景了!

查看完整回答
反對(duì) 回復(fù) 2017-09-30
?
AllySu

TA貢獻(xiàn)27條經(jīng)驗(yàn) 獲得超13個(gè)贊

請(qǐng)簡(jiǎn)單說(shuō)明你的問(wèn)題,首先讓人家知道你想表達(dá)什么

查看完整回答
反對(duì) 回復(fù) 2017-09-30
  • 2 回答
  • 0 關(guān)注
  • 1499 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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