-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
305 lines (291 loc) · 6.04 KB
/
index.html
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>京东无延迟菜单</title>
<link href="" rel="stylesheet">
<script src="js/jquery.min.js"></script>
</head>
<style>
.wrap{
position: relative;
width: 200px;
left: 50px;
top: 50px;
}
ul{
padding: 15px 0;
margin: 0;
list-style: none;
background: #6c6669;
color: #fff;
border-right-width: 0;
}
li{
display: block;
height: 30px;
line-height: 30px;
padding-left: 12px;
cursor: pointer;
font-size: 14px;
position: relative;
}
li.active{
background-color: #999395;
}
li span:hover{
color: #c81623;
}
.none{
display: none;
}
#sub {
width: 600px;
position: absolute;
border: 1px solid #f7f7f7;
box-shadow: 2px 0 5px rgba(0,0,0,.3);
left: 200px;
top: 0;
box-sizing: border-box;
margin: 0;
padding: 10px;
}
.sub-content a {
font-size: 12px;
color: #666;
text-decoration: none;
}
.sub-content dd a {
border-left: 1px solid #e0e0e0;
padding: 0 10px;
margin: 4px 0;
}
.sub-content dl {
position: relative;
overflow: hidden;
padding-left: 70px;
}
.sub-content dt {
position: absolute;
top: 0;
left: 0;
width: 70px;
font-weight: bold;
}
.sub-content dd {
margin-left: 5px;
border-top: 1px solid #eee;
margin-bottom: 5px;
}
.sub-content dt i{
width: 4px;
height: 14px;
font: 400 9px/14px consolas;
position: absolute;
right: 5px;
top: 5px;
}
.sub-content dd.no-border-top{
border-top: none;
}
</style>
<body>
<div class="wrap" id="test">
<ul>
<li data-id="a">
<span>家用电器</span>
</li>
<li data-id="b">
<span>手机/运营商/数码</span>
</li>
<li data-id="c">
<span>电脑/办公</span>
</li>
<li data-id="d">
<span>家具/家居/家装/厨具</span>
</li>
<li data-id="e">
<span>男装/女装/童装/内衣</span>
</li>
<li data-id="f">
<span>美妆个护/宠物</span>
</li>
<li data-id="g">
<span>女鞋/箱包/钟表/珠宝</span>
</li>
<li data-id="h">
<span>男鞋/运动/户外</span>
</li>
<li data-id="i">
<span>汽车/汽车用品</span>
</li>
<li data-id="j">
<span>母婴/玩具乐器</span>
</li>
<li data-id="k">
<span>食品/酒类/生鲜/特产</span>
</li>
<li data-id="l">
<span>医疗保健</span>
</li>
</ul>
<div id="sub" class="none">
<div id="a" class="sub-content none">
<dl>
<dt>
<a href="#">电视<i>></i></a>
</dt>
<dd class="no-border-top">
<a href="#">合资品牌</a>
<a href="#">国产品牌</a>
<a href="#">互联网品牌</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">空调<i>></i></a>
</dt>
<dd>
<a href="#">合变频式空调</a>
<a href="#">柜式空调</a>
<a href="#">中央空调</a>
<a href="#">空调配件</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">洗衣机<i>></i></a>
</dt>
<dd>
<a href="#">滚筒洗衣机</a>
<a href="#">洗烘一体机</a>
<a href="#">波轮洗衣机</a>
<a href="#">迷你洗衣机</a>
<a href="#">洗衣机配件</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">冰箱<i>></i></a>
</dt>
<dd>
<a href="#">多门</a>
<a href="#">对开门</a>
<a href="#">三门</a>
<a href="#">双门</a>
<a href="#">冰柜/冰吧</a>
<a href="#">冰箱配件</a>
</dd>
</dl>
</div>
<div id="b" class="sub-content none">
<dl>
<dt>
<a href="#">手机通讯<i>></i></a>
</dt>
<dd class="no-border-top">
<a href="#">手机</a>
<a href="#">对讲机</a>
<a href="#">以旧换新</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">运营商<i>></i></a>
</dt>
<dd>
<a href="#">合约机</a>
<a href="#">柜式空调</a>
<a href="#">中央空调</a>
<a href="#">空调配件</a>
<a href="#">合约机</a>
<a href="#">柜式空调</a>
<a href="#">中央空调</a>
<a href="#">空调配件</a>
<a href="#">合约机</a>
<a href="#">柜式空调</a>
<a href="#">中央空调</a>
<a href="#">空调配件</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">手机配件<i>></i></a>
</dt>
<dd>
<a href="#">手机壳</a>
<a href="#">贴膜</a>
<a href="#">手机存储卡</a>
<a href="#">数据线</a>
<a href="#">充电器</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">摄影摄像<i>></i></a>
</dt>
<dd>
<a href="#">数码相机</a>
<a href="#">数码相机</a>
<a href="#">数码相机</a>
<a href="#">数码相机</a>
<a href="#">数码相机/运动相机</a>
<a href="#">数码相机</a>
</dd>
</dl>
</div>
<div id="c" class="sub-content none">
<dl>
<dt>
<a href="#">电脑整机<i>></i></a>
</dt>
<dd class="no-border-top">
<a href="#">笔记本</a>
<a href="#">游戏本</a>
<a href="#">平板</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">电脑配件<i>></i></a>
</dt>
<dd>
<a href="#">合变频式空调</a>
<a href="#">柜式空调</a>
<a href="#">中央空调</a>
<a href="#">空调配件</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">外设产品<i>></i></a>
</dt>
<dd>
<a href="#">滚筒洗衣机</a>
<a href="#">洗烘一体机</a>
<a href="#">波轮洗衣机</a>
<a href="#">迷你洗衣机</a>
<a href="#">洗衣机配件</a>
</dd>
</dl>
<dl>
<dt>
<a href="#">游戏设备<i>></i></a>
</dt>
<dd>
<a href="#">多门</a>
<a href="#">对开门</a>
<a href="#">三门</a>
<a href="#">双门</a>
<a href="#">冰柜/冰吧</a>
<a href="#">冰箱配件</a>
</dd>
</dl>
</div>
</div>
</div>
</body>
<script src="js/functions.js"></script>
<script src="js/index.js"></script>
</html>