文字导航栏
示例:
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
* {
margin: 0;
padding: 0;
}
.wrap {
height: 30px;
background-color: #0294dd;
font-family: 微软雅黑;
}
ul {
border: 1px solid red;
overflow: hidden;
}
.wrap li {
float: left;
list-style: none;
}
.wrap li a{
margin: 0 12px;
padding: 0 12px;
text-decoration: none;
line-height: 30px;
display: block;
color: #FFFFFF;
}
a:hover {
background-color: #999999;
}
</style>
</head>
<body>
<div class="wrap">
<ul>
<li><a href="">电影</a></li>
<li><a href="">小说</a></li>
<li><a href="">图片</a></li>
<li><a href="">新闻</a></li>
</ul>
</div>
</body>
</html>