<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.u1{
width: 707px;
overflow: hidden;
border-top: 1px solid gold;
border-left: 1px solid gold;
border-bottom: 1px solid gold;
margin: 0 auto;
/*background-color: red;*/
}
a{
line-height: 50px;
height: 50px;
width: 100px;
float: left;
color: pink;
text-align: center;
border-right: 1px solid gold;
text-decoration: none;
}
li{
list-style: none;
}
a:hover{
background-color: red;
}
</style>
<body>
<ul class="u1">
<li><a href="#">首页</a></li>
<li><a href="#">公司简介</a></li>
<li><a href="#">解决方案</a></li>
<li><a href="#">公司新闻</a></li>
<li><a href="#">行业动态</a></li>
<li><a href="#">招贤纳采</a></li>
<li><a href="#">联系我们</a></li>
</ul>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.u1{
width: 707px;
overflow: hidden;
border-top: 1px solid gold;
border-left: 1px solid gold;
border-bottom: 1px solid gold;
margin: 0 auto;
/*background-color: red;*/
}
a{
line-height: 50px;
height: 50px;
width: 100px;
float: left;
color: pink;
text-align: center;
border-right: 1px solid gold;
text-decoration: none;
}
li{
list-style: none;
}
a:hover{
background-color: red;
}
</style>
<body>
<ul class="u1">
<li><a href="#">首页</a></li>
<li><a href="#">公司简介</a></li>
<li><a href="#">解决方案</a></li>
<li><a href="#">公司新闻</a></li>
<li><a href="#">行业动态</a></li>
<li><a href="#">招贤纳采</a></li>
<li><a href="#">联系我们</a></li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.d1{
width: 960px;
height: 40px;
margin: 0 auto;
border: 1px solid gold;
}
a{
font-size: 12px;
padding: 5px 10px;
float: left;
background-color: yellow;
text-decoration: none;
/*padding-left: 10px;*/
margin-right: 10px;
}
li{
list-style: none;
overflow: hidden;
text-align: 30px;
padding-top: 5px;
}
a:hover{
background-color: red;
}
.u1{
/*padding-top: 5px;*/
padding-left: 300px;
overflow: hidden;
}
</style>
<body>
<div class="d1">
<ul class="u1">
<li>
<a href="#">上一页</a>
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">···</a>
<a href="#"></a>
<a href="#">5</a>
<a href="#">6</a>
<a href="#">下一页</a>
</li>
</ul>
</div>
</body>
</html>