forked from WangJia-mm/JavaScript201708
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
118 lines (98 loc) · 1.6 KB
/
index.css
File metadata and controls
118 lines (98 loc) · 1.6 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
html, body {
width: 100%;
overflow-x: hidden;
background: #F4F4F4;
font-size: 14px;
color: #555;
}
.container {
margin: 20px auto;
width: 1200px;
overflow: hidden;
}
/*--HEADER--*/
.header {
background: #FFF;
}
.header span {
float: left;
width: 90px;
line-height: 50px;
text-align: center;
}
.header a {
position: relative;
float: left;
padding: 0 15px;
line-height: 50px;
text-align: center;
color: #999;
}
.header a i {
position: absolute;
right: 3px;
top: 50%;
margin-top: -4px;
width: 0;
height: 0;
font-size: 0;
overflow: hidden;
border: 4px solid transparent;
}
.header a i.up {
margin-top: -9px;
border-bottom-color: #999;
}
.header a i.down {
margin-top: 1px;
border-top-color: #999;
}
.header a i.up.bg {
border-bottom-color: #E01D20;
}
.header a i.down.bg {
border-top-color: #E01D20;
}
.header a:hover {
color: #E01D20;
}
/*--LIST--*/
.list {
width: 1205px;
margin-top: 20px;
}
.list li {
margin: 0 10px 10px 0;
float: left;
}
/*
nth-of-type AND nth-child 实现一些获取操作
.list li:nth-of-type(odd) a {
background: red;
}
.list li:nth-of-type(even) a {
background: green;
}
*/
.list li a {
display: block;
padding: 0 16px;
width: 193px;
background: #FFF;
border: 3px solid transparent;
}
.list li a img {
display: block;
width: 100%;
}
.list li a p {
line-height: 40px;
color: #999;
}
.list li a span {
line-height: 40px;
color: #555;
}
.list li a:hover {
border: 3px solid #E01D20;
}