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

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

我加上了class標(biāo)簽,為啥不行了?

我加上了class標(biāo)簽,為啥不行了?

像個(gè)好人 2017-07-22 15:23:03
<!DOCTYPE?html> <html> <head> ????<meta?charset="UTF-8"> ????<title></title> ????<style?type="text/css"> ????????li{ ????????????width:?100px; ????????????height:?20px; ????????????line-height:??20px; ????????????position:?relative; ????????????margin:?10px; ????????} ????????button?{ ????????????position:?absolute; ????????????right:?3px; ????????????top:?1px; ????????????height:?20px; ????????????/*?隱藏深處按鈕?*/ ????????????display:none; ????????} ????????.123:hover?button?{ ????????????/*?顯示刪除按鈕?*/ ????????????display:inline; ????????} ????</style> ????<script?type="text/javascript"> ????????//定義按鈕點(diǎn)擊事件del,刪除上級(jí)節(jié)點(diǎn) ????????function?del(){ ?????????var?e=e||window.event; ?????????var?el=e.srcElement; ?????????var?li=el.parentNode; ?????????li.parentNode.removeChild(li); ????????}? ????</script> </head> <body> <ul> ????<li?class="123">內(nèi)容1<button?onclick="del(this)">刪除</button></li> ????<li>內(nèi)容2<button?onclick="del(this)">刪除</button></li> ????<li>內(nèi)容3<button?onclick="del(this)">刪除</button></li> ????<li>內(nèi)容4<button?onclick="del(this)">刪除</button></li> ????<li>內(nèi)容5<button?onclick="del(this)">刪除</button></li> </ul> </body> </html>
查看完整描述

1 回答

  • 1 回答
  • 1 關(guān)注
  • 1223 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(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)