首页 > 代码库 > 半透明效果导航菜单
半透明效果导航菜单
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml</a>">
<head>
<FCK:meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>半透明效果导航菜单</title>
<style type="text/css">
<!--
#navcontainer
{
background: #f0e7d7;
margin: 0 auto;
padding: 1em 0 0 0;
font-family: georgia, serif;
text-transform: lowercase;
}
/* to stretch the container div to contain floated list */
#navcontainer:after
{
content: ".";
display: block;
line-height: 1px;
font-size: 1px;
clear: both;
}
ul#navlist
{
list-style: none;
padding: 0;
margin: 0 auto;
width: 80%;
font-size: 0.8em;
}
ul#navlist li
{
display: block;
float: left;
width: 15%;
margin: 0;
padding: 0;
}
ul#navlist li a
{
display: block;
width: 100%;
padding: 0.5em;
border-width: 1px;
border-color: #ffe #aaab9c #ccc #fff;
border-style: solid;
color: #777;
text-decoration: none;
background: #f7f2ea;
}http://www.huiyi8.com/jiaocheng/
文档教程
#navcontainer>ul#navlist li a { width: auto; }
ul#navlist li#active a
{
background: #f0e7d7;
color: #800000;
}
ul#navlist li a:hover, ul#navlist li#active a:hover
{
color: #800000;
background: transparent;
border-color: #aaab9c #fff #fff #ccc;
}
-->
</style>
</head>
<body>
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="http://www.mamicode.com/#/" _fcksavedurl="#/" id="current">特效</a></li>
<li><a href="http://www.mamicode.com/#" _fcksavedurl="#">特效</a></li>
<li><a href="http://www.mamicode.com/#" _fcksavedurl="#">特效</a></li>
<li><a href="http://www.mamicode.com/#" _fcksavedurl="#">特效</a></li>
<li><a href="http://www.mamicode.com/#" _fcksavedurl="#">特效</a></li>
<li><a href="http://www.mamicode.com/#" _fcksavedurl="#">特效</a></li>
</ul>
</div>
</body>
</html></iframe></body></html>
半透明效果导航菜单