老师打扰了,就是使用了hover方法后无法正常显示

老师打扰了,就是使用了hover方法后无法正常显示

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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/index.css">
    <link rel="stylesheet" href="./css/ui.css">
    <title>幕淘网</title>
</head>
 
<body>
    <!-- top部分 -->
    <div class="top">
        <div class="center">
            <div class="left top-left">
                <ul>
                    <li class="left">
                        <a href="#1" style="color: #f01414;">亲,请登录</a></li>
                    <li class="left"><a href="#1">免费注册</a></li>
                    <li class="left"><a href="#1">手机逛幕多多</a></li>
                </ul>
            </div>
            <div class="right">
                <div class="top-dropdown">
                    <div class="left dropdown-item  ">
                        <div class="dropdown-toggle">
                            <a href="">我的幕多多</a>
                            <i class="dropdown-icon"></i>
                        </div>
 
                        <ul class="dropdown-layer dropdown-left">
                            <li>
                                <a href="" class="dropdown-items">已买到的宝贝</a>
                                <a href="" class="dropdown-items">我的足迹</a>
                            </li>
                        </ul>
                    </div>
                    <div class="left dropdown-item">
                        <div class="dropdown-toggle"> <a href="">  收藏夹</a><i class="dropdown-icon"></i></div>
                        <ul class="dropdown-layer dropdown-left">
                            <li><a href="###" target="_blank" class="dropdown-items">收藏的宝贝</a></li>
                            <li><a href="###" target="_blank" class="dropdown-items">收藏的店铺</a></li>
                        </ul>
                    </div>
                    <div class="left dropdown-item">
                        <div class="dropdown-toggle"> <a href="">  商品分类</a></div>
 
                    </div>
                    <div class="left dropdown-item">
                        <div class="dropdown-toggle"><a href="">卖家中心</a><i class="dropdown-icon"></i></div>
                        <ul class="dropdown-layer dropdown-left">
                            <li><a href="###" target="_blank" class="dropdown-items">免费开店</a></li>
                            <li><a href="###" target="_blank" class="dropdown-items">已卖出的宝贝</a></li>
                            <li><a href="###" target="_blank" class="dropdown-items">出售中的宝贝</a></li>
                            <li><a href="###" target="_blank" class="dropdown-items">卖家服务市场</a></li>
                            <li><a href="###" target="_blank" class="dropdown-items">卖家培训中心</a></li>
                            <li><a href="###" target="_blank" class="dropdown-items">体验中心</a></li>
                        </ul>
                    </div>
                    <div class="left dropdown-item ">
                        <div class="dropdown-toggle"><a href=""> 联系客服</a><i class="dropdown-icon"></i></div>
                        <ul class="dropdown-layer dropdown-right">
                            <li><a href="###" target="_blank" class="dropdown-items">消费者客服</a></li>
                            <li><a href="###" target="_blank" class="dropdown-items">卖家客服</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
 
    <!----------------------------------------    top部分  ------------------------------->
 
 
    <!---------------------------------- logo部分------------------------------- -->
    <div class="logo">
        <div class="center">
            <div class="logo-logo left">
                <a href="" class="logo-logo-img"></a>
            </div>
            <div class="logo-search left">
                <form action="https://s.taobao.com/search" id="form">
                    <input type="text" placeholder="灵魂没事一元抢" name="q" class="left search-input" autocomplete="off"></input>
                    <input type="submit" value="搜索" class="left search-submit"></input>
                </form>
                <ul class="search-layer">
                    <!--  <li class="search-layer-item text-ellipsis">123</li>
                    <li class="search-layer-item text-ellipsis">123</li>
                    <li class="search-layer-item text-ellipsis">123</li> -->
                </ul>
            </div>
 
        </div>
    </div>
    </div>
    </div>
 
    <!-- -----------------------------------logo部分----------------------------------------- -->
 
 
    <!-- -----------------------------------------------nav部分---------------------------------------- -->
    <div class="nav">
        <div class="center">
            <div class="nav-item">
                <a href="">数码城</a>
                <a href="">天黑黑</a>
                <a href="">团购</a>
                <a href="">发现</a>
                <a href="">二手特价</a>
                <a href="">名品汇</a>
            </div>
 
        </div>
    </div>
    <!-- -----------------------------------------------nav部分---------------------------------------- -->
 
    <!-- -----------------------------------banner部分----------------------------------------- -->
    <div class="banner">
        <div class="center clearfloat">
 
            <!-- 商品分类 -->
            <div class="commodity left" id="focus-category">
                <div class="commodity-top">
                    <img src="./img/九宫格.png" alt=""> 商品分类
                </div>
 
                <ul class="commdity-itmes">
 
                    <!--   <div class="commdity-names">
                        <a class="commdity-name left">
                            家用电器
                        </a>
                        <i class="right">&gt;</i>
                    </div> -->
 
                    <li class="dropdown" data-active="category" data-load="js/1.json">
                        <div class="commdity-names ">
                            <a href="###" target="_blank" class="commdity-name left">家用电器</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <dl class="category-details clearfloat">
                                <dt class="category-details-title left">
                                    <a href="###" target="_blank" class="category-details-title-link">电视</a>
                                </dt>
                                <dd class="category-details-item left">
                                    <a href="###" target="_blank" class="link">国产品牌</a>
                                    <a href="###" target="_blank" class="link">对讲机</a>
                                    <a href="###" target="_blank" class="link">以旧换新</a>
 
                                </dd>
                            </dl>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/2.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">手机</a
                            > <a href="###" target="_blank" class="commdity-name left">运营商</a
                            > <a href="###" target="_blank" class="commdity-name left">数码</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <dl class="category-details clearfloat">
                                <dt class="category-details-title left">
                                    <a href="###" target="_blank" class="category-details-title-link">手机</a>
                                </dt>
                                <dd class="category-details-item left">
                                    <a href="###" target="_blank" class="link">品牌</a>
                                    <a href="###" target="_blank" class="link">对讲机</a>
                                    <a href="###" target="_blank" class="link">以旧换新</a>
 
                                </dd>
                            </dl>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/3.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">电脑</a
                            > <a href="###" target="_blank" class="commdity-name left">办公</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/4.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">家居</a
                            > <a href="###" target="_blank" class="commdity-name left">家具</a
                            > <a href="###" target="_blank" class="commdity-name left">家装</a
                            > <a href="###" target="_blank" class="commdity-name left">厨具</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/5.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">男装</a
                            > <a href="###" target="_blank" class="commdity-name left">女装</a
                            > <a href="###" target="_blank" class="commdity-name left">童装</a
                            > <a href="###" target="_blank" class="commdity-name left">内衣</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/6.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">化妆</a
                            > <a href="###" target="_blank" class="commdity-name left">清洁</a
                            > <a href="###" target="_blank" class="commdity-name left">宠物</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/7.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">运动户外</a
                            > <a href="###" target="_blank" class="commdity-name left">钟表</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/8.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">汽车</a
                            > <a href="###" target="_blank" class="commdity-name left">汽车用品</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/9.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">母婴</a
                            > <a href="###" target="_blank" class="commdity-name left">玩具乐器</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/10.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">食品</a
                            > <a href="###" target="_blank" class="commdity-name left">酒类</a
                            > <a href="###" target="_blank" class="commdity-name left">生鲜</a
                            > <a href="###" target="_blank" class="commdity-name left">特产</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
                    <li class="dropdown" data-active="category" data-load="js/11.json">
                        <div class="commdity-names">
                            <a href="###" target="_blank" class="commdity-name left">医药保健</a>
                            <i class="right">&gt;</i>
                        </div>
                        <div class="dropdown-layer" style="display: none;">
                            <div class="dropdown-loading"></div>
                        </div>
                    </li>
 
 
 
                </ul>
            </div>
 
 
 
 
            <!-- 轮播图 -->
            <div class="slideshow left">
                <!--     <div class="slideshow-img" style="left: -728px;">
                    <img src="./img/code/img/focus-slider/5.jpg" alt="">
                    <img src="./img/code/img/focus-slider/1.jpg" alt="">
                    <img src="./img/code/img/focus-slider/2.jpg" alt="">
                    <img src="./img/code/img/focus-slider/3.jpg" alt="">
                    <img src="./img/code/img/focus-slider/4.jpg" alt="">
                    <img src="./img/code/img/focus-slider/5.jpg" alt="">
                    <img src="./img/code/img/focus-slider/1.jpg" alt="">
                </div>
 -->
                <div class="slideshow-img">
 
                    <img src="./img/code/img/focus-slider/1.jpg" alt="" class="slideshow-imgs" data-index="1">
                    <img src="./img/code/img/focus-slider/2.jpg" alt="" class="slideshow-imgs" data-index="2">
                    <img src="./img/code/img/focus-slider/3.jpg" alt="" class="slideshow-imgs" data-index="3">
                    <img src="./img/code/img/focus-slider/4.jpg" alt="" class="slideshow-imgs" data-index="4">
                    <img src="./img/code/img/focus-slider/5.jpg" alt="" class="slideshow-imgs" data-index="5">
                </div>
 
                <div class="slideshow-button">
                    <span class="slideshow-button-item slideshow-button-item-act" data-index="1"></span>
                    <span class="slideshow-button-item" data-index="2"></span>
                    <span class="slideshow-button-item" data-index="3"></span>
                    <span class="slideshow-button-item" data-index="4"></span>
                    <span class="slideshow-button-item" data-index="5"></span>
                </div>
 
                <a href="#2" class="arrow" id="prev">&lt;</a>
                <a href="#2" class="arrow" id="next">&gt;</a>
 
 
 
            </div>
 
 
 
 
 
            <!-- 便民服务 -->
            <div class="services right">
                <div class="services-top">
                    <div class="services-top-title">
                        <div class="left title">慕快报</div>
                        <a href="" class="right">更多 &gt;</a>
                    </div>
                    <div class="services-top-items">
                        <a href="" class="services-item">[公告] 幕多多启用新客服电话</a>
                        <a href="" class="services-item">[活动] 优选好货</a>
                        <a href="" class="services-item">[公告] 中差评论功能升级</a>
                        <a href="" class="services-item">[公告] 陌生人拼团上线</a>
                        <a href="" class="services-item">[新闻] 售假获刑又起诉</a>
                    </div>
                </div>
                <div class="services-middle">
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe616;</p>
                            <p>话费</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe614;</p>
                            <p>机票</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe6a7;</p>
                            <p>电影票</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe60e;</p>
                            <p>游戏</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe6cc;</p>
                            <p>彩票</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe60b;</p>
                            <p>加油卡</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe681;</p>
                            <p>酒店</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe636;</p>
                            <p>火车票</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe6e6;</p>
                            <p>众筹</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe605;</p>
                            <p>理财</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe7d9;</p>
                            <p>礼品卡</p>
                        </a>
 
                    </div>
                    <div class="services-middle-item">
                        <a>
                            <p class='iconfont'>&#xe61c;</p>
                            <p>多点金</p>
                        </a>
 
                    </div>
                </div>
                <div class="services-bottom"></div>
            </div>
        </div>
    </div>
    <!-- -----------------------------------banner部分----------------------------------------- -->
      <script type="text/javascript" src="./js/jq.js"></script>
    <script type="text/javascript" src="./js/drop.js"></script>
    <script type="text/javascript" src="./js/hide.js"></script>
    <!-- <script type="text/javascript" src="./js/slideshow.js"></script> -->
    <script type="text/javascript" src="./js/search.js"></script>
    <script type="text/javascript" src="./js/toolbar.js"></script>
 
</body>
 
</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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
.clearfloat {
    zoom: 1;
}
 
.clearfloat:after {
    displayblock;
    clearboth;
    content"";
    visibilityhidden;
    height0;
}
 
* {
    margin0;
    padding0;
}
 
body {
    overflow-y: scroll;
}
 
a {
    text-decorationnone;
    cursorpointer;
}
 
a:hover {
    text-decorationnone;
}
 
ul,
li {
    list-stylenone;
}
 
.right {
    floatright;
}
 
.left {
    floatleft;
}
 
.center {
    margin0 auto;
    width1200px;
}
 
.text-ellipsis {
    text-overflow: ellipsis;
    white-spacenowrap;
    overflowhidden;
}
 
 
/*icon*/
 
@font-face {
    font-family"iconfont";
    srcurl('../font/iconfont.eot');
    /* IE9*/
    srcurl('../font/iconfont.eot?#iefix'format('embedded-opentype'), /* IE6-IE8 */
    url('../font/iconfont.woff2'format('woff2'), /*  */
    url('../font/iconfont.woff'format('woff'), /*  */
    url('../font/iconfont.ttf'format('truetype'), /*  */
    url('../font/iconfont.svg#iconfont'format('svg');
}
 
.iconfont {
    font-family"iconfont" !important;
    font-size14px;
    font-stylenormal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width0.2px;
    -moz-osx-font-smoothing: grayscale;
}
 
.transition {
    -webkit-transition: all .6s;
    -moz-transition: all .6s;
    -ms-transition: all .6s;
    -o-transition: all .6s;
    transition: all .6s;
    transform: ;
}
.top {
    height44px;
    background#f3f5f7;
    font-size10px;
}
 
.top .center {
    border-bottom1px solid #cdd0d4;
    height43px;
    line-height43px;
}
 
.top .top-left li a {
    display: inline-block;
    padding-left25px;
    color#4d555d;
}
 
.top-dropdown .dropdown-item a:hover,
.top .top-left li a:hover {
    color#f01414;
    text-decorationnone;
}
 
.top-dropdown {
    height100%;
}
 
.dropdown-toggle {
    positionrelative;
    z-index2;
    displayblock;
    height100%;
    padding0 16px 0 12px;
    border-left1px solid #f3f5f7;
    border-right1px solid #f3f5f7;
}
 
.top-dropdown .dropdown-item {
    positionrelative;
}
 
.dropdown-icon {
    display: inline-block;
    width8px;
    height6px;
    backgroundurl(../img/code/img/dropdown-arrow.png) no-repeat;
    margin-left8px;
    vertical-alignmiddle;
    cursorpointer;
}
 
.top-dropdown .dropdown-item a {
    color#4d555d;
}
 
.dropdown-left {
    left0;
    rightauto;
}
 
.dropdown-right {
    right0;
    leftauto;
}
 
.dropdown-layer {
    displaynone;
    positionabsolute;
    top43px;
    background-color#fff;
    z-index1;
    border1px solid #cdd0d4;
}
 
.dropdown-items {
    displayblock;
    height30px;
    line-height30px;
    padding0 12px;
    color#4d555d;
    white-spacenowrap;
}
 
.dropdown-items:hover {
    background-color#f3f5f7;
}
 
.dropdown-active .dropdown-toggle,
.dropdown:hover .dropdown-toggle {
    background-color#fff;
    border-color#cdd0d4;
}
 
.dropdown-active .dropdown-icon,
.dropdown:hover .dropdown-icon {
    background-imageurl(../img/code/img/dropdown-arrow-active.png);
}
 
.dropdown-active .dropdown-layer,
.dropdown:hover .dropdown-layer {
    displayblock;
}
 
 
/* -----------------top部分------------------------ */
 
 
/* ------------------logo部分------------------- */
 
.logo {
    background#f3f5f7;
    line-height126px;
    height126px;
    width100%;
}
 
.logo-logo a {
    cursorpointer;
    displayblock;
    width212px;
    height58px;
    margin36px 0 0 15px;
    text-indent-9999px;
    overflowhidden;
    backgroundurl(../img/code/img/header-logo.png) no-repeat;
}
 
.logo-search {
    width680px;
    height42px;
    border1px solid #cfd2d5;
    margin-top38px;
    margin-left150px;
    positionrelative;
}
 
.search-input {
    width586px;
    height42px;
    bordernone;
    background#fff;
    padding0 10px;
    line-height42px;
}
 
.search-submit {
    bordernone;
    outlinenone;
    background#ca003f;
    color#fff;
    height42px;
    width74px;
    cursorpointer;
}
 
.search-layer {
    displaynone;
    positionabsolute;
    top100%;
    left-1px;
    width100%;
    background-color#fff;
    border1px solid #cfd2d5;
    z-index99;
}
 
.search-layer-item {
    height24px;
    line-height24px;
    padding0 10px;
    cursorpointer;
}
 
.search-layer-item:hover {
    background-color#f3f5f7;
}
 
 
/* ------------------logo部分------------------- */
 
 
/* ------------------nav部分------------------- */
 
.nav {
    background#ca003f;
    width100%;
    height50px;
    line-height50px;
    margin-bottom8px;
}
 
.nav .nav-item {
    positionrelative;
    margin-left300px;
}
 
.nav .nav-item a {
    display: inline-block;
    height50px;
    line-height50px;
    margin-right62px;
    color#fff;
    padding0 10px;
}
 
.nav .nav-item a:hover {
    colorred;
    background#000000;
}
 
 
/* ----------------------------nav部分--------------------------------------- */
 
 
/* -------------------------------------banner部分--------------------------- */
 
.banner {
    height504px;
    width100%;
    background#f3f5f7;
    margin-bottom10px;
}
 
.commodity {
    background#c1043f;
    positionrelative;
    width208px;
    height566px;
    margin-top-62px;
    margin-right8px;
    color#fff;
    z-index9;
}
 
.commodity-top {
    margin-top12px;
    height50px;
    width100%;
}
 
.commodity-top img {
    width12px;
    height12px;
    background-color#c1043f;
    margin-left24px;
    margin-right12px;
}
 
.commdity-itmes {
    width208px;
    height504px;
    color#fff;
}
 
.commdity-names {
    width100%;
    height22px;
    margin-bottom14px;
    padding5px 0;
}
 
.commdity-name {
    margin-left16px;
    font-size14px;
    color#fff;
}
 
.commdity-names i {
    margin-right12px;
    font-size12px;
}
 
.banner .commodity .commdity-names-act {
    background#fff;
}
 
.banner .commodity .commdity-names-act .commdity-name,
.banner .commodity .commdity-names-act i {
    color#c1043f;
}
 
 
/* 下拉层 */
 
.commdity-itmes {
    positionrelative;
}
 
.commdity-itmes .dropdown-layer {
    displayblock;
    positionabsolute;
    left208px;
    top-8px;
    width744px;
    min-height472px;
    background-color#fff;
    padding8px 0 31px 0;
}
 
.category-details {
    width744px;
    margin-top24px;
    line-height20px;
}
 
.category-details .category-details-title {
    width84px;
    padding-right16px;
    border-right1px solid #d9dde1;
    text-alignright;
}
 
.category-details .category-details-title-link {
    color#07111b;
    font-weightbold;
}
 
.category-details .category-details-item {
    width592px;
    padding-left15px;
}
 
.category-details .category-details-item .link {
    color#000000;
    display: inline-block;
    margin-right16px;
    font-size12px;
}
 
 
/* ----------轮播图------------------ */
 
.slideshow {
    positionrelative;
    height504px;
    width728px;
    overflowhidden;
}
 
.slideshow-img {
    height504px;
    width728px;
    positionabsolute;
}
 
 
/* .slideshow-img img {
    float: left;
} */
 
.slideshow .arrow {
    positionabsolute;
    color#fff;
    background#000000;
    height90px;
    width46px;
    line-height90px;
    font-size35px;
    text-aligncenter;
    displaynone;
}
 
.slideshow #prev {
    left0;
    top50%;
    margin-top-45px;
}
 
.slideshow #next {
    right0;
    top50%;
    margin-top-45px;
}
 
.slideshow-button {
    positionabsolute;
    bottom0;
    left50%;
    margin-bottom26px;
    margin-left-46px;
    displaynone;
}
 
.slideshow-button .slideshow-button-item {
    floatleft;
    displayblock;
    height7px;
    width7px;
    background: grey;
    margin-right12px;
    border1px solid #fff;
    border-radius: 50%;
    cursorpointer;
}
 
.slideshow .slideshow-button .slideshow-button-item-act {
    background#fff;
    border1px solid grey;
}
 
 
/* ------------便民服务----------  */
 
.services {
    height504px;
    width248px;
}
 
.services .services-top {
    height197px;
    width247px;
    border1px solid #d9dde1;
    border-bottomnone;
}
 
.services-top-title {
    height52px;
    width100%;
    line-height52px;
}
 
.services-top-title a {
    color#4d555d;
    font-size11px;
    margin-right30px;
}
 
.services-top-title .title {
    color#f01414;
    margin-left16px;
    font-size18px;
}
 
.services-top-items {
    width100%;
    height162px;
    margin-left16px;
}
 
.services-item {
    displayblock;
    height14px;
    margin-bottom15px;
    color#4d555d;
    font-size13px;
}
 
.services-top-items a:hover {
    color#f01414;
}
 
.services .services-middle {
    height216px;
    width248px;
    border-left1px solid #d9dde1;
}
 
.services-middle-item {
    width61px;
    height71px;
    border-top1px solid #d9dde1;
    border-right1px solid #d9dde1;
    floatleft;
}
 
.services-middle-item:hover {
    box-shadow: 0 0 10px rgba(0000.6);
}
 
.services-middle-item .iconfont {
    color#f67272;
    font-size23px;
    /*  transition-duration: .6s; */
    -webkit-transition: -webkit-transform .6s;
    -moz-transition: -moz-transform .6s;
    -ms-transition: -ms-transform .6s;
    -o-transition: -o-transform .6s;
    transition: transform .6s;
}
 
 
/*   运动  */
 
.services-middle-item:hover .iconfont {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    transform: translateY(-10px);
}
 
 
/* @keyframes move {
    0% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}
 */
 
.services-middle-item p {
    font-size2px;
}
 
.services-middle-item a {
    margin-top18px;
    displayblock;
    text-aligncenter;
}
 
.services .services-bottom {
    height89px;
    width248px;
    backgroundurl(../img/code/img/focus-ad.png);
}
 
 
/* -----------------------------banner部分-------------------------------- */
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
var dropdown = $(".dropdown");
var commditynames = dropdown.find(".commdity-names");
var dropdownlayer = dropdown.find(".dropdown-layer");
 
dropdown.hover(function(e) {
    var index = $(this).index();
    console.log(index);
 
 
    commditynames.removeClass("commdity-names-act").eq(index).addClass("commdity-names-act");
    loadOnce($(this), createCategoryDetails);
    $(this).find(".dropdown-layer").show();
    e.stopPropagation();
}, function(e) {
    commditynames.removeClass("commdity-names-act");
    loadOnce($(this), createCategoryDetails);
    $(this).find(".dropdown-layer").hide();
 
    e.stopPropagation();
})
 
 
 
 
 
function createCategoryDetails($elem, data) {
    var html = '';
 
    for (var i = 0; i < data.length; i++) {
 
        html += '<dl class="category-details clearfloat"><dt class="category-details-title left"><a href="###" target="_blank" class="category-details-title-link">' + data[i].title + '</a></dt><dd class="category-details-item left">';
 
        for (var j = 0; j < data[i].items.length; j++) {
 
            html += '<a href="###" target="_blank" class="link">' + data[i].items[j] + '</a>';
        }
 
        html += '</dd></dl>';
    }
    // setTimeout(function () {
    $elem.find('.dropdown-layer').html(html);
    // },1000);
 
};
 
 
function loadOnce($elem, success) {
    var dataLoad = $elem.data('load');
 
    if (!dataLoad) return;
 
    if (!$elem.data('loaded')) {
        $elem.data('loaded'true);
        $.getJSON(dataLoad).done(function(data) {
            if (typeof success === 'function') success($elem, data);
        }).fail(function() {
            $elem.data('loaded'false);
        });
    }
}


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

2回答
好帮手慕言 2019-12-19 19:04:46

同学你好,使用同学提供的代码测试,鼠标可以移入上次截图中的绿框区域和褐色框区域里。同学指的是哪里呢?可以配合图文详细的描述下。祝学习愉快~

好帮手慕言 2019-12-19 18:05:03

同学你好,菜单是可以正常显示的,如下图

http://img1.sycdn.imooc.com//climg/5dfb4ab009390a6909370545.jpg

如果不是这里的话,建议同学描述清楚,老师帮助解答。

如果我的回答帮到了你,欢迎采纳,祝学习愉快~

  • 提问者 繁湖 #1
    可以显示,,但是你移动到下拉列表就没有了,,就不能正确显示
    2019-12-19 18:08:44
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
2.组件化网页开发
  • 参与学习           人
  • 提交作业       1121    份
  • 解答问题       14456    个

本阶段在运用JS实现动态网页开发的基础上,带你深入理解企业开发核心思想,完成一个企业级网页的开发,体验前端工程师的成就感。

了解课程
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师
插入代码