如图:

第一种:

<div id="menu1">
<ul>
<li><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
#menu1 {
width: 200px;
float:left;
}
#menu1 ul
{
font-family: Arial, Helvetica, sans-serif;
list-style-type:none;
margin:0;
padding:0;
}
#menu1 li
{
display: inline;
}
#menu1 a
{
color: #fff;
text-decoration: none;
font-size: 14px;
display: block;
padding: 3px;
width: 160px;
background-color: #686C7A;
border-bottom: 1px solid #eee;
}
#menu1 a:link, #menu a:visited
{
color: #EEE;
text-decoration: none;
}
#menu1 a:hover
{
background-color: #00BEE4;
color: #fff;
}
#menu1 li a#current
{
border-bottom: 3px solid #DAD6B7;
background: #00BEE4;
}

第二种:

<div id="menu2">
<ul>
<li><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
#menu2 {
width: 200px;
float:left;
}
#menu2 ul
{
font-family: Arial, Helvetica, sans-serif;
list-style-type:none;
margin:0;
padding:0;
}
#menu2 li
{
display: inline;
/* for IE5 and IE6 */
}
#menu2 a
{
color: #483000;
text-decoration: none;
font-size: 14px;
display: block;
padding: 3px;
width: 160px;
background-color: #F0F0D8;
border-bottom: 1px solid #fff;
}
#menu2 a:link, #menu a:visited
{
color: #483000;
text-decoration: none;
}
#menu2 a:hover
{
background-color: #487890 ;
color: #fff;
}
#menu2 li a#current
{
border-bottom: 3px solid #C0C018;
background: #487890 ;
color: #fff;
}

第三种:

<div id="menu3">
<ul>
<li><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
#menu3 {
width: 200px;
float:left;
}
#menu3 ul
{
font-family: Arial, Helvetica, sans-serif;
list-style-type: circle;
list-style-position:inside;
margin:0;
padding:0;
}
#menu3 li
{
display: inline;
/* for IE5 and IE6 */
}
#menu3 a
{
color: #483000;
text-decoration: none;
font-size: 14px;
display: block;
padding: 3px;
width: 160px;
background-color: #fff;
border-bottom: 1px solid #fff;
}
#menu3 a:link, #menu3 a:visited
{
color: #483000;
text-decoration: none;
}
#menu3 a:hover
{
border-left: 3px solid #901818;
color: #000;
}
#menu3 li a#current
{
border-left: 3px solid #901818;
background: #F0F0F0;
color: #000;
}

第四种:

<div id="menu4">
<ul>
<li><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
#menu4 {
width: 200px;
float:left;
}
#menu4 ul
{
font-family: Arial, Helvetica, sans-serif;
list-style-type:none;
margin:0;
padding:0;
}
#menu4 li
{
display: inline;
/* for IE5 and IE6 */
margin:0px 0px 2px 0px;
}
#menu4 a
{
color: #000;
text-decoration: none;
font-size: 14px;
display: block;
padding: 3px;
width: 160px;
background-color: #FDFCF3;
border: 1px dotted #B5E3C7;
margin:0px 0px 2px 0px;
}
#menu4 a:link, #menu4 a:visited
{
color: #000;
text-decoration: none;
}
#menu4 a:hover
{
background-color: #B5E3C7 ;
color: #FDFCF3;
}
#menu4 li a#current
{
border: 1px solid #B5E3C7;
background: #B5E3C7 ;
color: #FDFCF3;
}
        👍赞 0
说点什么
支持Markdown语法
好耶,沙发还空着ヾ(≧▽≦*)o
Loading...