1. 程式人生 > >第十一天 導航條

第十一天 導航條

```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>導航條</title>
<style type="text/css">
*{
margin: 0 auto;
text-decoration: none;

}
.box{
width:960px;
height: 40px;
border:1px solid black;
margin-top: 100px;
}
.nav{
/*float:left;*/
line-height: 40px;
margin-left: 110px;
}
a{
margin-right: 20px;
margin-left: 20px;
font: bold 14px 微軟雅黑;
color:#333;
}
.box a:hover{
color:#939191;
text-decoration: underline;
}
</style>
</head>
<body>
<div class = "box">
<div class= "nav">
<a href = "#">首頁</a>|
<a href = "#">網站建設</a>|
<a href = "#">程式開發</a>|
<a href = "#">網路營銷</a>|
<a href = "#">企業VI</a>|
<a href = "#">案例展示</a>|
<a href = "#">聯絡我們</a>
</div>
</div>
</body>
</html>
```
![image.png](https://upload-images.jianshu.io/upload_images/13008127-0f1511d78bdc6b93.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)