<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
}
.wrap {
width: 642px;
height: 240px;
background-color: aqua;
margin: 50px auto;
padding: 15px 22px 22px 19px;
box-sizing: border-box;
}
.a1 {
line-height: 49px;
font-size: 19px;
}
.a2 {
font-size: 13px;
text-align: center;
margin-top: 8px;
}
.wrap .top .a3 p {
font-size: 12px;
}
.wrap .top .a3 a {
display: block;
width: 48px;
height: 18px;
border: 1px solid white;
font-size: 12px;
text-align: center;
line-height: 18px;
border-radius: 3px;
position: absolute;
top: 45px;
left: 0;
bottom: 0;
right: 0;
margin: auto;
color: white;
}
.wrap li .top {
position: relative;
}
.a3 {
width: 190px;
height: 85px;
position: absolute;
background-color: #00c38e;
display: none;
text-align: center;
padding: 6px 19px 10px 15px;
line-height: 24px;
box-sizing: border-box;
color: white;
}
li {
width: 190px;
height: 150px;
background-color: #f5f5f5;
margin-right: 14px;
}
.wrap li:hover .a3 {
display: block;
top: 65px;
}
.wrap li {
float: left;
}
.a4 {
margin-right: 0;
}
</style>
</head>
<body>
<div class="wrap">
<h4 class="a1">留学活动</h4>
<ul>
<li>
<div class="top">
<img src="./images/图层465.jpg" alt="">
<!-- 透明 -->
<div class="a3">
<p>中科院,设计思维,两场高质量体验美国</p>
<a href="#">详细</a>
<div></div>
</div>
</div>
<div class="bot">
<p class="a2">中科院,设计思维,两场高质</p>
</div>
</li>
<li>
<div class="top">
<img src="./images/图层467.jpg" alt="">
<!-- 透明 -->
<div class="a3">
<p>中科院,设计思维,两场高质量体验美国</p>
<a href="#">详细</a>
<div></div>
</div>
</div>
<div class="bot">
<p class="a2">中科院,设计思维,两场高质</p>
</div>
</li>
<li class="a4">
<div class="top">
<img src="./images/图层468.jpg" alt="">
<!-- 透明 -->
<div class="a3">
<p>中科院,设计思维,两场高质量体验美国</p>
<a href="#">详细</a>
<div></div>
</div>
</div>
<div class="bot">
<p class="a2">中科院,设计思维,两场高质</p>
</div>
</li>
</ul>
</div>
</body>
</html>