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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

瞎寫(xiě)的,沒(méi)看完教程,應(yīng)該是另外一種思路

<!DOCTYPE?html>
<html>
<head>
<meta?charset="UTF-8"?/>
<meta?http-equiv="X-UA-Compatible"?content="IE=edge"?/>
<meta?name="viewport"?content="width=device-width,?initial-scale=1"?/>
<title>折疊效果2</title>
<style>
*?{?margin:?0;?padding:?0;?box-sizing:?border-box;?}
#wrap?{
width:?800px;
margin:?0?auto;
}
#ad?{
width:?100%;
height:?0px;
overflow:?hidden;
transition:?height?5s;
}
#ad?img?{
width:?100%;
}
#banner?{
width:?100%;
height:?100px;
background-color:?#69c;
line-height:?100px;
text-align:?center;
}
#banner?a?{
text-decoration:?none;
}

</style>
</head>
<body>
<div?id="wrap">
<div?id="ad"></div>
<div?id="banner">
<a?href="#">點(diǎn)擊展開(kāi)</a>
</div>
</div>

<script>
window.onload?=?function()?{
let?adBox??=?document.querySelector('#ad');
let?banner?=?document.querySelector('#banner');

let?img?=?new?Image();
img.src?=?"src/lili.jpg";
imgEl?=?`<img?src="${img.src}"/>`;

img.onload?=?function()?{
adBox.innerHTML?=?imgEl;
}

banner.addEventListener('mouseover',?function(){
adBox.style.height?=?'480px';
});
banner.onmouseout?=?function(){
adBox.style.height?=?'0px';
};

}
</script>
</body>
</html>

http://img1.sycdn.imooc.com//5969773d00012a9016880434.jpg

http://img1.sycdn.imooc.com//5969773d0001bb8217481316.jpg


正在回答

1 回答

你寫(xiě)的是什么?

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

舉報(bào)

0/150
提交
取消
展開(kāi)與收起效果
  • 參與學(xué)習(xí)       33635    人
  • 解答問(wèn)題       183    個(gè)

通過(guò)效果展示與案例分析,教您實(shí)現(xiàn)不同類(lèi)型的展開(kāi)與收起效果

進(jìn)入課程

瞎寫(xiě)的,沒(méi)看完教程,應(yīng)該是另外一種思路

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

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

幫助反饋 APP下載

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

公眾號(hào)

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