预约科室左边那块用表格怎样设置样式

预约科室左边那块用表格怎样设置样式

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
<!DOCTYPE html>
 
<html>
 
<head>
 
 <meta charset="UTF-8">
 
 <title>项目作业</title>
 
 <link rel="stylesheet" type="text/css" href="js/index.css">
 
</head>
 
<body>
 
 <div class="top">
 
  <div class="wrap">
 
   <div class="top-1">
 
    <img src="img/icon-call.png">
 
    <span>010-114/116114电话预约</span>
 
   </div>
 
   <div class="top-2">
 
    <span>欢迎来到城市预约挂号统一平台&nbsp;请&nbsp;&nbsp;
 
     <a href="#">登录</a>&nbsp;&nbsp;
 
     <a href="#">注册</a>&nbsp;&nbsp;&nbsp;&nbsp;
 
     <a href="#">帮助中心</a>
 
    </span>
 
   </div>
 
  </div>
 
 </div>
 
 <div class="header">
 
  <div class="header-1">
 
   <img src="img/logo.png">
 
   <div class="header-2 ui-header">
 
    <div class="ui-header-selected">医院</div>
 
    <div class="ui-header-select-list">
 
     <a href="#1">科室</a>
 
     <a href="#1">疾病</a>
 
     <a href="#1">医院</a>
 
    </div>
 
    <input type="text" name="header-content" class="ui-search-input" placeholder="请输入搜索内容">
 
    <a href="#" class="ui-header-submit">&nbsp;</a>
 
   </div>
 
  </div>
 
 </div>
 
 <div class="nav">
 
  <div class="nav-1">
 
   <a href="#" class="left">首页</a>
 
   <a href="#" class="left">按医院挂号</a>
 
   <a href="#" class="left">按科室挂号</a>
 
   <a href="#" class="left">按疾病挂号</a>
 
   <a href="#" class="left">最新公告</a>
 
   <a href="#" class="right">社会知名医院</a>
 
  </div>
 
 </div>
 
 <!-- 简介intro -->
 
 <div class="content">
 
  <div class="content-1">
 
   <div class="content-2">
 
    <span class="a">北京协和医院</span>&nbsp;
 
    <span class="b">关注医院</span>
 
    <span class="c">
 
     <a href="#">等级:</a>三级甲等&nbsp;&nbsp;
 
     <a href="#">区域:</a>东城区&nbsp;&nbsp;
 
     <a href="#">分类:</a>中国医科院附属医院
 
    </span>
 
   </div>
 
   <div class="content-3">
 
    <div class="content-left">
 
     <img src="img/hospital-1.jpg">
 
    </div>
 
    <div class="center">
 
     <p class="icon icon1">[东院]北京市东城区帅府园一号[西院]北京市西城区大木仓胡同41号</p>
 
     <p class="icon icon2">http//:www.pumch.cn/</p>
 
     <p class="icon icon3">东院咨询台:010-692124124;西院咨询台:010-315351616</p>
 
     <p class="icon icon4">东院:106,108,110,111,116,684,685到东单路口北41,104快814到东城区南门口;1,52,728,802到东单路口西;20,25,37,39,到东单路口东;<br/>
 
     103,130,314,124到新东安市场;地铁1,5号线到东单。西院:68到辟才胡同东口;更多乘车路线详见须知</p>
 
    </div>
 
    <div class="content-right">
 
     <img src="img/map-1.png">
 
    </div>
 
   </div>
 
  </div>
 
 </div>
 
    <div class="footer">
 
     <div class="footer-1">
 
      <div class="footer-nav">
 
       <a href="#" class="footer-nav1 nav-2">预约挂号</a>
 
       <a href="#" class="footer-nav1">医院介绍</a>
 
       <a href="#" class="footer-nav1">预约须知</a>
 
       <a href="#" class="footer-nav1">停诊信息</a>
 
       <a href="#" class="footer-nav1">查询取消</a>
 
      </div>
 
      <div class="footer-left">
 
       <table>
 
        <div class="t">开放预约科室</div>
 
        <tr>
 
         <td class="z">2013</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
           <tr>
 
            <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
        <tr>
 
         <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
        <tr>
 
         <td class="z">专科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
           <tr>
 
            <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
        <tr>
 
         <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
        <tr>
 
         <td class="z">内科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
           <tr>
 
            <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
        <tr>
 
         <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
                     <tr>
 
         <td class="z">内科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
           <tr>
 
            <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
        <tr>
 
         <td></td>
 
         <td>特殊门诊科</td>
 
         <td>特殊门诊科</td>
 
        </tr>
 
       </table>
 
      </div>
 
      <div class="footer-right">
 
        
 
      </div>
 
     </div>
 
    </div>
 
</body>
 
</html>
 
 
 
*{
 padding: 0;
 margin:0;
}
a{
 text-decoration: none;
 color: blue;
}
.top{
 background: #f5f5f5;
 height: 40px;
}
.wrap{
 width: 1000px;
 margin: 0 auto;
}
.top-1{
 float: left;
 line-height: 40px;
}
.top-2{
 float: right;
 line-height: 40px;
}
.header{
 width: 1000px;
  
 margin:0 auto;
 position: relative;
}
.header-1{
 width: 400px;
 height: 75px;
}
.header-1 img{
 width: 100%;
 height: 100%;
}
.header-2{
 width: 326px;
 height: 40px;
 position: absolute;
 top:20px;
 right: 0;
 background: url(../img/ui-search.jpg) center no-repeat;
}
.ui-header-selected{
 width:78px;
 height: 38px;
 line-height: 38px;
 position: absolute;
 left: 0;
 top: 0;
 text-indent: 14px;/*首行缩进*/
}
.ui-header-select-list{
 display: none;
 position: absolute;
 width: 67px;
 line-height: 24px;
 background-color: #f5f5f5;
 left: 2px;
 top: 36px;
 z-index: 2;
}
.ui-header-select-list a{
 display: block;
 text-align: center;
 color:#A5a2a2;
}
.ui-search-input{
 width:212px;
 height: 32px;
 position: absolute;
 left:69px;
 top:2px;
}
.nav{
 background:#60bff2;
}
.nav-1{
 width:1000px;
 height:40px;
 line-height: 40px;
 margin:0 auto;
}
.nav-1 a{
 color: #fff;
}
.left{
 padding-left: 50px;
}
.right{
 float: right;
}
.content{
 margin-top: 20px;
}
.content-1{
 width:1000px;
 margin:0 auto;
 background: #f7f7f7;
}
.content-2 {
    line-height: 60px;
    border-bottom: 1px solid #ccc;
    margin: 0 20px;
}
.content-2 .a{
 font-size: 20px;
}
.content-2 .b{
 font-size: 15px;
 color: orange;
}
.content-2 .c{
 float: right;
}
.content-3{
 width: 1000px;
 height: auto;
 margin:0 auto;
    overflow: hidden;
}
.content-left{
 width: 200px;
 margin-right: 30px;
 margin: 15px 20px;
 float: left;
}
.content-left img{
 width: 100%;
}
.center{
 width: 440px;
 height: 210px;
 float: left;
 margin-top: 15px;
 margin-left: 50px;
 font-size: 10px;
 line-height: 30px;
}
.content-right{
 float: right;
 margin-top: 15px;
 margin-right: 20px;
}
.content-right img{
 width: 100%;
 height: 180px;
}
.icon{
 position: relative;
 padding-left: 28px;
}
.icon:before{
 content: ' ';
 display: block;
 width: 20px;
 height: 20px;
 background: url(../img/icon-web.png) no-repeat;
 position: absolute;
 left: 0;
 top: 10px;
}
.icon2:before{
 top: 7px;
 left: 0px;
 background-position: 0 -20px;
}
.icon3:before{
 top: 7px;
 left: 0px;
 background-position: 0 -43px;
}
.icon4:before{
 top: 7px;
 left: 0px;
 background-position: 0 -62px;
}
.footer{
 margin-top: 20px;
}
.footer-1{
 width: 1000px;
 margin: 0 auto;
 border-bottom: 1px solid #60bff2;
}
.footer-nav{
 height: 50px;
 line-height: 50px;
}
.footer-nav1{
 display: block;
    width: 112px;
    height: 50px;
    text-align: center;
    float: left;
    color: #60bff2;
}
.nav-2{
 background: #60bff2;
 color: #fff;
}
.footer-left{
 width:600px;
 height: 300px;
    float: left;
    margin-top: 20px;
}
 .t{
 background: #ccc;
 width: 600px;
 height: 40px;
 line-height: 40px;
}
table .z{
 background: orange;
 text-align: center;
}
.footer-right{
 width:380px;
 height: 300px;
 background: orange;
 float: right;
 margin-top: 20px;
}

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

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

2回答
好帮手慕夭夭 2018-11-08 16:54:42

你好同学 ,是如下排班表吗 ?

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

这一块建议同学调整结构 , 使用dl布局会简单一些 .思路如下:

如下整体放在一个大的div下面 , div中放四个dl标签分别放四个不同的科室 

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

每个dl中有一个标题和一个列表  ,结构如下:

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

css样式:

  1. 整体dl可以设置一个背景色background-color: #f2fbff; ,而右边的dd列表可以设置一个   background-color: #fff;

  2. 给dt和dd适当的宽高 , 具体结合效果图设置 , 一些偏差是可以存在的

  3. dt和dd可以使用绝对定位 ,使其在一行显示 . 注意给dl设置相对定位 ,让里面的元素参照其定位.

希望能够帮到你 , 祝学习愉快 ! 望采纳


好帮手慕夭夭 2018-11-08 16:32:26

你好同学 ,是说的如下红框中如何设置样式吗 ?

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

由于同学上传的代码中这一块还没有做 ,所以不知道同学具体问的什么样式 . 请具体描述一下 , 或者先把这一块的内容做出来 ,然后在具体问题具体分析 . 

祝学习愉快 !

  • 提问者 慕后端8593059 #1
    左边那块样式不知道如何设置调试很久了
    2018-11-08 16:34:16
问题已解决,确定采纳
还有疑问,暂不采纳

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

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

0 星
请稍等 ...
微信客服

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

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