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

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

為什么不對(duì)啊 大神幫忙看看

為什么不對(duì)啊 大神幫忙看看

慕粉3760367 2016-10-15 16:16:03
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>練習(xí)</title><style type="text/css" media="screen">? ? ? ?*{padding:0;margin:0;}? ? ul{list-style: none;margin-left: 20px;}? ? li{float: left;}? ? a{text-decoration:none;height:40px;width:100px;background-color: #ccc;display:block;text-align: center;line-height: 40px;margin-bottom: 15px;}? ? a:hover{background-color: #ecc;color: #fff;? ? }</style><script type="text/javascript">? ? window.onload=function(){? var aA=document.getElementsByTagName('a');? for(var i=0;i<aA.length;i++)? {? ? ? aA[i].onmouseover=function(){? ? ? ? ? var This=this;? ? ? ? ? This.time=setInterval(function(){? ? ? ? ? This.style.width=This.offsetWidth+8+"px";? ? ? ? ? if(This.offetWidth>=130){? ? ? ? ? ? clearInterval(This.time);? ? ? ? ? } ? ??? ? ? ? ? },30);?? ? ? ? ??? ? ? }? ? ? ?aA[i].onmouseout=function(){? ? ? ? ? var This=this;? ? ? ? ? This.time=setInterval(function(){? ? ? ? ? This.style.width=This.offsetWidth-8+"px";?? ? ? ? ? if(This.offetWidth<=100){? ? ? ? ? ? This.style.width="100px";? ? ? ? ? ? clearInterval(This.time);? ? ? ? ? } ? ??? ? ? ? ? },30);?? ? ? ? ?? ? ? }? ? ? ? ?? }}? ?? ?</script><meta name="description" content=""><meta name="keywords" content=""><link href="" rel="stylesheet"></head><body>? ?<ul>? ? ? ? <li><a href="" title="">首頁(yè)</a></li>? ? ? ? ?<li><a href="" title="">資訊</a></li>? ? ? ? ? <li><a href="" title="">新聞</a></li>? ? ? ? ? ?<li><a href="" title="">產(chǎn)品展示</a></li>? ? </ul>?</body></html>
查看完整描述

1 回答

?
stone310

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

1。if(XXX)里面的offsetWidth拼錯(cuò)了

2。每個(gè)事件的開始 ,即var This=this 后面要加上clearInterval(This.time);先停止上一次的計(jì)時(shí)器,否則來回移動(dòng)會(huì)出現(xiàn)bug

查看完整回答
反對(duì) 回復(fù) 2016-10-15
  • 1 回答
  • 0 關(guān)注
  • 1121 瀏覽
慕課專欄
更多

添加回答

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