设置导航链接内边距和外边距
实例代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
ul{
list-style-type:none;
margin:0;
padding:0;
}
</style>
</head>
<body>
<p>在此例中,我们从列表中删除了项目符号及默认的内边距和外边距 </p>
<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>
运行效果:
评论