创建垂直导航链接实例
实例代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
ul{
list-style-type:none;
margin:0;
padding:0;
width:100px;
}
li a {
background-color:#cccccc;
display:block;
padding:8px 16px;
text-decoration:none;
}
li a:hover{
background-color:#555;
color:white;
}
</style>
</head>
<body>
<h1>垂直导航栏</h1>
<ul>
<li><a href="https://www.dwoke.com">首页</a></li>
<li><a href="https://www.dwoke.com">文章</a></li>
<li><a href="https://www.dwoke.com">下载</a></li>
<li><a href="https://www.dwoke.com">文档</a></li>
<li><a href="https://www.dwoke.com">关于</a></li>
</ul>
</body>
</html>
运行效果:
评论