<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="js/jquery.min.js"></script>
<style type="text/css">
*{
margin: 0px;
padding: 0px;
}
.box{
width: 1200px;
margin: 0px auto;
border: 2px solid red;
}
.top{
height: 400px;
background: yellow;
}
.list{
height: 500px;
}
h1{
height: 50px;
background: red;
}
.content{
height: 450px;
background: black;
}
.lou{
width: 50px;
background: #918888;
position: fixed;
top: 30%;
}
.lou a{
display: block;
color: white;
/*width: 50px;*/
padding: 10px 0px;
text-align: center;
border-bottom: 1px solid #B1AAAA;
text-decoration: none;
}
.active{
background: red;
}
.buttom{
height: 600px;
background: green;
}
.Top{
width:1000px;
margin:0px auto;
height: 0px;
background:pink;
}
</style>
<script type="text/javascript">
$(function(){
$('.Top').animate({'height':'300px'},1000,function(){
setTimeout(function(){
$('.Top').animate({'height':'0px'},1000);
},3000)
})
})
</script>
</head>
<body>
<div class="Top"></div>
<div class="box">
<div class="top">
</div>
<div class="list">
<h1>1樓</h1>
</div>
<div class="list">
<h1>2樓</h1>
</div>
<div class="list">
<h1>3樓</h1>
</div>
<div class="list">
<h1>4樓</h1>
</div>
<div class="list">
<h1>5樓</h1>
</div>
<div class="list">
<h1>6樓</h1>
</div>
<div class="list">
<h1>7樓</h1>
</div>
<div class="list">
<h1>8樓</h1>
</div>
<div class="bottom">
</div>
</div>
</body>
</html>
jq實現購物網站頂部廣告自動彈出收回效果
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.