html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./dh.css">
</head>
<body>
<div id="box">
<ul>
<li>
<a href="">What's new</a>
<div class="box1">
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li>asdf gtyyrttrt</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li>asdf gtyyrttrt</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li class="ab">HOME</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="ab">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li class="ab">HOME</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
</div>
</li>
<li><a href="">Top rated</a>
<div class="box1">
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li>asdf gtyyrttrt</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li>asdf gtyyrttrt</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li class="ab">HOME</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="ab">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li class="ab">HOME</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
</div>
</li>
<li><a href="">Earnings</a>
<div class="box1">
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li>asdf gtyyrttrt</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li>asdf gtyyrttrt</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="aa">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li class="ab">HOME</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
<div>
<ul>
<li class="ab">HOME</li>
<li>reambertds7</li>
<li>ewrfs swqa</li>
<li>erquy qwe</li>
<li class="ab">HOME</li>
<li>sdff</li>
<li>drggrweing</li>
<li>ertegtraewes</li>
</ul>
</div>
</div>
</li>
<li><a href="">Rings</a></li>
<li><a href="">Bracelets</a></li>
<li><a href="">All Categories</a></li>
</ul>
</div>
</body>
</html>
ccs
*{
margin: 0;
padding: 0;
}
ul li{list-style: none;}
#box{
width: 900px;
height: 80px;
background-color: aqua;
margin: 0 auto;
position: relative;
}
#box>ul>li{
float: left;
width: 144px;
height: 80px;
text-align: center;
line-height: 80px;
font-size: 15px;
border: 1px solid black;
}
a{
text-decoration: none;
color: rgb(43, 127, 201);
}
.box1:hover{
background-color: rgb(163, 166, 159);
}
a:hover{
color: blue;
font-size: 20px;
}
.box1{
display: none;
width: 900px;
height: 300px;
background-color: skyblue;
position: absolute;
left: 0;
}
#box>ul>li:hover .box1{
display: block;
}
.box1>div{
width: 223px;
height: 300px;
/* border: 1px solid black; */
float: left;
font-size: 10px;
}
.box1 li{
display: block;
height: 30px;
}
.box1 .aa{
font-weight: bold;
}
.box1 .ab{
color: aqua;
font-weight: bold;
}
效果图