首页 > 代码库 > 导航条2-
导航条2-
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程</title>
<style>
nav{
height:35px;
width:1200px;
}
ul
{
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
}
li
{
float:left;
}
a:link,a:visited
{
display:block;
width:120px;
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
text-align:center;
padding:4px;
text-decoration:none;
text-transform:uppercase;
}
a:hover,a:active
{
background-color:#7A991A;
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="http://www.mamicode.com/#home">Home</a></li>
<li><a href="http://www.mamicode.com/#news">News</a></li>
<li><a href="http://www.mamicode.com/#contact">Contact</a></li>
<li><a href="http://www.mamicode.com/#about">About</a></li>
<li><a href="http://www.mamicode.com/#home">Home</a></li>
<li><a href="http://www.mamicode.com/#news">News</a></li>
<li><a href="http://www.mamicode.com/#contact">Contact</a></li>
<li><a href="http://www.mamicode.com/#about">About</a></li>
<li><a href="http://www.mamicode.com/#home">Home</a></li>
</ul>
</nav>
</body>
</html>
导航条2-