<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>nav</title>
<style type="text/css">
nav{width: 100%;height: 40px;background: #e0ffff;text-align: center;padding: 14px;}
li{display: inline;}
a{text-decoration: none;}
</style>
</head>
<body>
<nav>
<ul>
<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>
</nav>
</body>
</html>
转载于:https://www.cnblogs.com/houweidong/p/5853265.html