forked from wanglan19980421/repolarization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
64 lines (64 loc) · 1.04 KB
/
style.css
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
56
57
58
59
60
61
62
63
64
*{
margin: 0;
padding: 0;
}
.nav{
background-color: blue;
width: 100%;
height: 50px;
margin: 100px auto;
}
.topnav{
height: 50px;
width:auto;
margin-left: 150px;
list-style:none;
}
.topnav__list{
width: 100px;
height: 50px;
float: left;
background-color: blue;
font-size: 14px;
text-align: center;
line-height: 50px;
}
.topnav__list:hover{
color: #fff;
background-color: skyblue;
}
.topnav__link{
color: #fff;
text-decoration: none;
font-weight: bold;
}
.subnav {
height: 50px;
width:auto;
list-style:none;
display: block;
position: absolute;
width: auto;
}
.subnav__list {
float: left;
display: none;
height: 50px;
width:100px;
background-color: skyblue;
padding:5px 5px;
font-size: 14px;
line-height: 50px;
}
.subnav__link {
display: flex;
flex-direction: row;
color: #fff;
text-decoration: none;
}
.topnav__list:hover .subnav__list{
display: block;
}
.subnav__link:hover {
text-decoration: underline;
}