<!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;
height: 0;
}
li{
list-style: none;
}
a{
text-decoration: none;
}
.box{
width: 100px;
height: 30px;
background-color: aqua;
margin: 0 auto;
position:relative;
}
.content>a{
width: 100px;
padding-left: 30px;
}
.box1{
width: 150px;
height: 100px;
background-color: bisque;
margin-top: 8px;
margin-left:-65px;
display: none;
}
.box:hover .box1{
display: block;
}
.box1::after{
content: '';
display: block;
width: 0;
height: 0;
border: 8px solid red;
border-color:transparent transparent red transparent;
position: absolute;
left: 40px;
bottom: 0;
}
</style>
</head>
<body>
<div class="box">
<div class="content"> <a href="#">下载</a>
<ul>
<li class="box1"><a href="#"></a></li>
</ul>
</div>
</div>
</body>
</html>