产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

分享:简约风格的导航条代码 [复制链接]

1#
    首先感谢xiyou在我帖子中的回复。
    另外如果有更好的导航效果代码,也请大家分享一下。
    把代码放到 管理后台-网站栏目管理-自定义栏目-勾上开启自定义栏目-源代码
    把#号替换成实际的链接,就可以正常使用了。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style>
body{background-colorf3f9f3;font-family:Arial, Helvetica,sans-serif;font-size:15px;text-align:center}
#navcontainer{width:1000px}
#navlist
  {
   margin: 0;
   padding: 0 0 30px 45px;
   border-bottom: 2px solid #444;
  }
  
  #navlist ul, #navlist li
  {
   margin: 0;
   padding: 0;
   display: inline;
   list-style-type: none;
  }
  
  #navlist ank, #navlist a:visited
  {
   float: left;
   line-height: 20px;
   margin: 0 20px 4px 10px;
   text-decoration: none;
   color: #000;
  }
  
  #navlist ank#current, #navlist a:visited#current, #navlist a:hover
  {
   border-bottom: 1px solid #76B41C;
   padding-bottom: 5px;
   background: transparent;
   color: #fff;
  }
  
  #navlist a:hover { color: #00ae42; }
</style>
</head>
<body>
<p>&nbsp;</p>
<div id="navcontainer">
<ul id="navlist">
<li><a href="#”><strong>首页</strong></a></li>
<li><a href="#"><strong>关于我们</strong></a></li>
<li><a href="#"><strong>新闻动态</strong></a></li>
<li><a href="#"><strong>联系我们</strong></a></li>
</ul>
</div>
</body>
</html>
分享 转发
TOP
发新话题 回复该主题