网络编程
位置:首页>> 网络编程>> 网页设计>> 绿色下划线的简洁CSS导航代码

绿色下划线的简洁CSS导航代码

  发布时间:2007-09-17 12:51:00 

标签:导航,下划线

一个不错的绿色下划线的简洁CSS导航代码,纯css不用图片,效果图如下:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>绿色下划线的简洁CSS导航代码 - asp之家</title>
<style>
body{background-color:#292929;font-family:Arial, Helvetica, sans-serif;font-size:12px;text-align:center}
#navcontainer{width:778px}
#navlist
  {
   margin: 0;
   padding: 0 0 20px 20px;
   border-bottom: 1px solid #444;
  }
  #navlist ul, #navlist li
  {
   margin: 0;
   padding: 0;
   display: inline;
   list-style-type: none;
  }
  #navlist a:link, #navlist a:visited
  {
   float: left;
   line-height: 14px;
   margin: 0 10px 4px 10px;
   text-decoration: none;
   color: #999;
  }
  #navlist a:link#current, #navlist a:visited#current, #navlist a:hover
  {
   border-bottom: 1px solid #76B41C;
   padding-bottom: 5px;
   background: transparent;
   color: #fff;
  }
  #navlist a:hover { color: #EEEE; }
</style>
</head>
<body>
<p> </p>
<p> </p>
<div id="navcontainer">
<ul id="navlist">
<li><a href="https://www.aspxhome.com/" target="_blank" id="current">Link 01</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 02</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 03</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 04</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 05</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 06</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 07</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 08</a></li>
<li><a href="https://www.aspxhome.com/" target="_blank">Link 09</a></li>
</ul>
</div>
</body>
</html>


0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com