代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
#box{
border: 1px solid aqua;
height: 100px;
width: 200px;
text-align: center;
line-height: 100px;
margin: auto;
font-size: 22px;
}
.active{
background: slateblue;
}
li{
text-align: center;
list-style:none ;
width: 40px;
height: 20px;
line-height: 20px;
border: 1px solid blue;
margin-left: 40px;
float: left