<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
body,h3{
padding: 0;
margin: 0;
}
.box{
width: 600px;
border: 1px solid red;
margin: 100px auto;
}
.box h3{
width: 600px;
height: 50px;
text-align: center;
line-height: 50px;
background: red;
font-size: 20px;
}
.list .pic{
height: 0px;
background: green;
border: 1px solid yellow;
transition: all 3s;
}
.list:hover .pic{
height: 400px;
background: green;
}
</style>
</head>
<body>
<div class="box">
<div class="list">
<h3>今日新闻</h3>
<div class="pic"></div>
</div>
<div class="list">
<h3>今日新闻</h3>
<div class="pic"></div>
</div>
<div class="list">
<h3>今日新闻</h3>
<div class="pic"></div>
</div>
</div>
</body>
</html>
手风琴案例
最新推荐文章于 2024-02-21 11:19:29 发布