![](https://img2020.cnblogs.com/blog/2216408/202103/2216408-20210323093403367-557120236.png)
<!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>
.nav a {
display: block;
width: 200px;
height: 50px;
line-height: 50px;
text-decoration: none;
color: #fff;
background-color: black;
padding-left: 44px;
}
.nav a:hover {
background-color: orange;
}
</style>
</head>
<body>
<div class="nav">
<a href="#">手机、电脑、路由器</a>
<a href="#">手机、电脑、路由器xxxxx</a>
<a href="#">手机、电脑、路由器</a>
<a href="#">手机、电脑、路由器xx</a>
<a href="#">手机、电脑、路由器</a>
<a href="#">手机、电脑、路由器</a>
<a href="#">手机、电脑、路由器xxxxxxx</a>
</div>
</body>
</html>