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

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

想要的效果是鼠標(biāo)移入移出是圖片放大縮小,這種方法為什么不行啊

想要的效果是鼠標(biāo)移入移出是圖片放大縮小,這種方法為什么不行啊

Echo_Chien 2016-08-09 11:13:10
<!doctype html><html><head><meta charset="utf-8"><title>無(wú)標(biāo)題文檔</title><style>#wed{ width:270px; height:480px;border:1px solid rgba(153,153,153,1);background-image:url(123.JPG)}</style></head><body><div id="wed" onMouseOver="bigg()" onMouseOut="smal()"></div><script>var wed=document.getElementById("wed");? ?// wed.style.backgroundImage="123.JPG";? ?//alert(wed.style.width)function bigg(){? ? ??do(wed.style.width=wed.offsetWidth+5+"px") while(wed.offsetWidth>540) do(wed.style.height=wed.offsetHeight+20+"px") while(wed.offsetHeight>960) setTimeout(bigg,10) }/**/function smal(){ do(wed.style.width=wed.offsetWidth-5+"px") while(wed.offsetWidth<270) do(wed.style.height=wed.offsetHeight-20+"px") while(wed.offsetHeight<480) setTimeout(smal,10) } </script></body></html>
查看完整描述

2 回答

?
qq_非誠(chéng)勿擾_3

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

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>無(wú)標(biāo)題文檔</title>

<style>

#wed{?

width:270px;?

height:480px;

border:1px solid rgba(153,153,153,1);

background-image:url(123.JPG)

-webkit-transition: all 0.4s ease-in-out;

-moz-transition: all 0.4s ease-in-out;

-o-transition: all 0.4s ease-in-out;

-ms-transition: all 0.4s ease-in-out;

transition: all 0.4s ease-in-out;

}

#wed:hover{

width:540px;

height:960px;

}

</style>

</head>


<body>

<div id="wed">

</div>


</body>

</html>

不知道這樣行不行

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

添加回答

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