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

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

怎么沒效果呀?

<!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>我的網(wǎng)站</title>

<style>

*{margin:0;padding:0;font-size:14px;}

ul{list-style:none;height:50px;padding-left:30px;border-bottom:5px solid #F60;}

li{float:left;margin-top:20px;}

a{text-decoration:none;display:block;height:30px;line-height:30px;width:120px;background-color:#ccc;margin-bottom:1px;text-align:center; }/* 刪除下劃線和文本縮進 */

.on,a:hover{color:#fff;background:#F60;height:30px;line-height:30px;}

</style>

<script>

window.onload=function(){

var aA=document.getElementsByTagName('a');

for(var i=0;i<aA.length;i++){

aA[i].onmouseover=function(){

clearInterval(This.time)

var This=this;

This.time=setInterval(function(){

This.style.width=This.offsetWidth+8+"px";

if(This.offsetWidth>=160){

?clearInterval(This.time)

}

? },30)

}

}

aA[i].onmouseout=function(){

clearInterval(This.time)

var This=this;

This.time=setInterval(function(){

This.style.width=This.offsetWidth-8+"px";

if(This.offsetWidth<=120){

?This.style.width="120px";

?clearInterval(This.time)

}

? },30)

}

}

</script>

</head>


<body>


<ul>

<li><a class="on" href="#">首&nbsp;&nbsp;頁</a>

<li><a href="#">新聞快訊</a>

<li><a href="#">產(chǎn)品展示</a>

<li><a href="#">售后服務(wù)</a>

<li><a href="#">聯(lián)系我們</a>

</ul>

</body>

</html>?


正在回答

2 回答

...

for(var i=0;i<aA.length;i++){

aA[i].onmouseover=function(){

clearInterval(This.time)

var This=this;

...

這里寫了clearInterval(This.time),把它刪掉,后面的鼠標移出代碼也要刪掉,并且把aA[i].onmouseout...放進for循環(huán)中。

0 回復(fù) 有任何疑惑可以回復(fù)我~

在img.onload里可以設(shè)置canvas的大小啊stringsplit()

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
導(dǎo)航條菜單的制作
  • 參與學習       123855    人
  • 解答問題       838    個

水平、垂直、圓角導(dǎo)航條菜單,讓您的技術(shù)探索之路更高效

進入課程

怎么沒效果呀?

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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