<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>淘宝界面</title>
<link rel="stylesheet" type="text/css" href="1.css"/>
</head>
<body>
<ul class="nav">
<li class="content">
<a href="d">天猫</a>
</li>
<li class="content">
<a href="D">聚划算</a>
</li>
<li class="content">
<a href="D">天猫超市</a>
</li>
</ul>
</body>
</html>
*{
padding: 0px;
margin: 0px;
color: red;
font-weight: bold;
}
.nav{
list-style: none;
}
.nav::after{
content: "";
display: block;
clear: both;
}
.nav .content{
height: 30px;
line-height: 30px;
margin: 0 10px;
float: left;
}
.nav .content a{
padding: 0px 5px;
display: inline-block;
text-decoration: none;
}
.nav .content a:hover{
border-radius: 15px;
background-color: red;
color: white;
}