四种好看的垂直导航栏菜单


如图:

第一种:

1
2
3
4
5
6
7
8
9
<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>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#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;
}

第二种:

1
2
3
4
5
6
7
8
9
<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>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#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;
}

第三种:

1
2
3
4
5
6
7
8
9
<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>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#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;
}

第四种:

1
2
3
4
5
6
7
8
9
<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>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#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;
}

文章作者: COOL
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 COOL !
评论
  目录