top-menu min-height 24px border-left 1px solid ccc top-menu li float l

 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
46
47
48
49
50
51
52
53
54
55
.top-menu {
min-height: 24px;
border-left: 1px solid #ccc;
}
.top-menu li {
float: left;
display: block;
position: relative;
border: 1px solid #ccc;
border-width: 1px 1px 1px 0px;
list-style: none;
z-index: 10;
}
.top-menu a {
text-decoration: none;
padding: 2px 10px;
display: block;
}
.top-menu ul {
display: none;
position: absolute;
top: 22px;
left: -1px;
width: 160px;
background: #fff;
border: 0;
border-bottom: 1px solid #ccc;
}
.top-menu ul ul {
left: 100%;
top: -1px;
}
.top-menu li li {
float: none;
border-width: 1px 1px 0px 1px;
}
.top-menu li:hover {
background: #666;
}
.top-menu a:hover {
color: #fff;
}
.top-menu li:hover ul ul, .top-menu li:hover ul li:hover ul ul {
display: none;
}
.top-menu li:hover ul, .top-menu li:hover ul li:hover ul,
.top-menu li:hover ul li:hover ul li:hover ul {
display: block;
}