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

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

ul nomouseout ?

ul nomouseout ?

咕咕問 2016-02-22 16:54:42
通過document.getElementById()獲取到了ul,然后通過ul.onmouseout設(shè)置了alert();但是只要我的鼠標(biāo)從ul進(jìn)入到ul借點(diǎn)內(nèi)的li中,就alert了。下面是代碼<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>無標(biāo)題文檔</title></head><style type="text/css">li{ float:left; /* 注意 li的position必須設(shè)置為relative或者absolute */ position:relative; list-style-type:none; width:117px; line-height:33px; color:blue; background-color:red;}ul{ background-color:yellow; width:800px; height:300px; padding:0px; margin:0px;}</style><body><ul>? ? ? ? ? ? ? ? <li><div>協(xié)會(huì)活動(dòng)</div></li>? ? ? ? ? ? ? ? <li><div>基地勞動(dòng)</div></li>? ? ? ? ? ? ? ? <li><div>募捐方法</div></li>? ? ? ? ? ? ? ? <li><div>賬目明細(xì)</div></li>? ? ? ? ? ? </ul>? ? ? ? ? ??<script type="text/javascript"> ul = document.getElementsByTagName("ul")[0]; ul.onmouseout = function(e){ e = e || window.event; if(e.stopPropagation){ e.stopPropagation(); }else{ e.cancelBubble(); } alert(); }</script> ? ? ? ? ? ?</body></html>
查看完整描述

1 回答

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

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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