老师帮我看看我的科室排班表的页面布局,感觉写的有问题但是找不出哪里的问题

老师帮我看看我的科室排班表的页面布局,感觉写的有问题但是找不出哪里的问题

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
index.html
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>城市预约挂号统一平台</title>
    <link rel="stylesheet" href="css/layout.css"/>
    <link rel="stylesheet" href="css/index.css"/>
    <link rel="stylesheet" href="css/ui.css"/>
    <script src="js/jquery-1.7.1.min.js"></script>
</head>
<body>
    <div id="top" class="top">
        <div class="wrap">
            <p class="call">010-114/116114电话预约</p>
            <p class="welcome">欢迎来到城市预约挂号统一平台&nbsp;&nbsp;请&nbsp;&nbsp;&nbsp;&nbsp;
 <a href="#">登录</a>&nbsp;&nbsp;
 <a href="#">注册</a>
            </p>
        </div>
    </div>
 
    <div id="header" class="header">
        <div class="wrap">
            <div class="logo">
                <img src="img/logo.png"/>
            </div>
            <div class="search ui-search">
                <div class="ui-search-selected">医院</div>
                <div class="ui-search-select-list">
                    <a href="#">科室</a>
                    <a href="#">疾病</a>
                    <a href="#">医院</a>
                </div>
                <input type="text" name="search-content" class="ui-search-input" placeholder="请输入搜索内容"/>
                <a href="#" class="ui-search-submit">&nbsp;</a>
            </div>
        </div>
    </div>
 
    <div id="nav" class="nav">
        <div class="wrap">
            <a href="#">首页</a>
            <a href="#">按医院挂号</a>
            <a href="#">按科室挂号</a>
            <a href="#">按疾病挂号</a>
            <a href="#">最新公告</a>
        </div>
    </div>
 
    <div class="hospital_intro">
        <div class="wrap">
            <div class="hospital">
                <div class="hospital_caption">
                    <p class="name">北京协和医院<span class="subname">关注医院</span></p>
                    <p class="info">
                        <a href="#">等级: <span>三级甲等</span></a>
                        <a href="#">区域: <span>东城区</span></a>
                        <a href="#">分类: <span>中国医科院所属医院</span></a>
                    </p>
                </div>
                <div class="hospital_content">
                    <div class="left"></div>
                    <div class="center">
                        <div class="item">
                            <i></i><span>[东院]北京市东城区帅府园一号 [西院]北京市西城区大木胡同41号</span>
                        </div>
                        <div class="item">
                            <i></i><span>http://www.pumch.cn/</span>
                        </div>
                        <div class="item">
                            <i></i>东院咨询台:010-69155564;西院咨询台:010-69158010
                        </div>
                        <div class="item">
                            <i></i><span>东院:106,108,110,111,116,684,685到东单路口北;41,104块,814到东单路口南;1,52,728,802到东单路口西;
                            地铁1/5号线到东单。西院:68到比才胡同口;更多乘车路线详见须知</span>
                        </div>
                    </div>
                    <div class="right"></div>
                </div>
            </div>
        </div>
    </div>
 
    <div class="hospital_system">
        <div class="wrap">
            <div class="hospital_system_caption">
                <a class="item item_focus" href="javascript:;">预约挂号</a>
                <a class="item " href="javascript:;">医院介绍</a>
                <a class="item " href="javascript:;">预约通知</a>
                <a class="item " href="javascript:;">停诊信息</a>
                <a class="item " href="javascript:;">查询取消</a>
            </div>
            <div class="hospital_system_content">
                <div class="item">
                    <div class="appointment_office">
                        <div class="appointment_office_caption">预约开放科室</div>
                        <div class="appointment_office_content">
                            <div class="item">
                                <div class="item_caption">2301</div>
                                <div class="item_content">
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                    <a href="#" onclick="openSche()" class="link">特殊门诊科</a>
                                </div>
                            </div>
                            <div class="item">
                                <div class="item_caption">专科</div>
                                <div class="item_content">
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                    <a href="#" class="link">门诊麻醉科</a>
                                </div>
                            </div>
                            <div class="item">
                                <div class="item_caption">内科</div>
                                <div class="item_content">
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                    <a href="#" class="link">肿瘤内科门诊</a>
                                </div>
                            </div>
                            <div class="item">
                                <div class="item_caption">内科</div>
                                <div class="item_content">
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                    <a href="#" class="link">特需血液内科</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="rule">
                        <div class="rule_caption">预约规则 <span>(更新时间每日8:30更新)</span></div>
                        <div class="rule_content">
                            <div class="rule_content_item">
                                <p>预约周期:<span>7天</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>放号时间:<span>8:30</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>停挂时间:<span>下午14:00停止次日预约挂号(周五14:00后停挂至下周一)</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>退号时间:<span>就诊前一工作日14:00前取消</span></p>
                            </div>
                            <div class="rule_content_item">
                                <p>特殊规则:<span>取号地点不同:西园区预约取号地点:西园区门诊一号大厅挂号窗口取号。
                                    东园区预约取号地点:东园区门诊一号大厅挂号窗口取号</span></p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="item" style="display: none"><img src="img/page2.jpg"/></div>
                <div class="item" style="display: none"><img src="img/page3.jpg"/></div>
                <div class="item" style="display: none"><img src="img/page4.jpg"/></div>
                <div class="item search" style="display: none">
                    <div class="search_detail">
                        <span>预约识别码&nbsp;&nbsp;:&nbsp;&nbsp;</span>
                        <input type="text"/>
                        <p class="button">
                            <a href="#">查询订单</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
 
    <div id="footer" class="footer">
        Copyright&nbsp;&nbsp;&nbsp;&nbsp;&copy;&nbsp;&nbsp;&nbsp;&nbsp;2017慕课网版权所有
    </div>
    <script src="js/ui.js"></script>
    <script>
        function openSche(){
            window.open('scheduling.html','_self');
        }
    </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
scheduling.html
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>城市预约挂号平台</title>
    <link rel="stylesheet" href="css/scheduling_layout.css"/>
    <link rel="stylesheet" href="css/scheduling.css"/>
    <link rel="stylesheet" href="css/ui.css"/>
    <script src="js/jquery-1.7.1.min.js"></script>
</head>
<body>
    <div id="top" class="top">
        <div class="wrap">
            <p class="call">010-114/116114电话预约</p>
            <p class="welcome">欢迎来到城市预约挂号统一平台&nbsp;&nbsp;请&nbsp;&nbsp;&nbsp;&nbsp;
 <a href="#">登录</a>&nbsp;&nbsp;
 <a href="#">注册</a>
            </p>
        </div>
    </div>
 
    <div id="header" class="header">
        <div class="wrap">
            <div class="logo">
                <img src="img/logo.png"/>
            </div>
            <div class="search ui-search">
                <div class="ui-search-selected">医院</div>
                <div class="ui-search-select-list">
                    <a href="#">科室</a>
                    <a href="#">疾病</a>
                    <a href="#">医院</a>
                </div>
                <input type="text" name="search-content" class="ui-search-input" placeholder="请输入搜索内容"/>
                <a href="#" class="ui-search-submit">&nbsp;</a>
            </div>
        </div>
    </div>
 
    <div id="nav" class="nav">
        <div class="wrap">
            <a href="#">首页</a>
            <a href="#">按医院挂号</a>
            <a href="#">按科室挂号</a>
            <a href="#">按疾病挂号</a>
            <a href="#">最新公告</a>
        </div>
    </div>
 
    <div class="hospital_intro">
        <div class="wrap">
            <div class="hospital">
                <div class="hospital_caption">
                    <p class="name">北京协和医院<span class="subname">关注医院</span></p>
                    <p class="info">
                        <a href="#">等级: <span>三级甲等</span></a>
                        <a href="#">区域: <span>东城区</span></a>
                        <a href="#">分类: <span>中国医科院所属医院</span></a>
                    </p>
                </div>
                <div class="hospital_content">
                    <div class="left"></div>
                    <div class="center">
                        <div class="item">
                            <i></i><span>[东院]北京市东城区帅府园一号 [西院]北京市西城区大木胡同41号</span>
                        </div>
                        <div class="item">
                            <i></i><span>http://www.pumch.cn/</span>
                        </div>
                        <div class="item">
                            <i></i>东院咨询台:010-69155564;西院咨询台:010-69158010
                        </div>
                        <div class="item">
                            <i></i><span>东院:106,108,110,111,116,684,685到东单路口北;41,104块,814到东单路口南;1,52,728,802到东单路口西;
                                地铁1/5号线到东单。西院:68到比才胡同口;更多乘车路线详见须知</span>
                        </div>
                    </div>
                    <div class="right"></div>
                </div>
            </div>
        </div>
    </div>
 
    <div class="scheduling">
        <div class="wrap">
            <div class="scheduling_caption">科室排班表<a href="#" onclick="openIndex()">返回科室列表</a></div>
            <div class="scheduling_content">
                <div class="scheduling_list">
                    <div class="scheduling_list_left">
                        <div class="date"><a href="#" class="iconfont icon_left">&#xe645;</a></div>
                        <div class="status">上午</div>
                        <div class="status">下午</div>
                        <div class="status">晚上</div>
                    </div>
                    <div class="scheduling_list_box">
                        <div class="scheduling_list_box_wrap clearfix" id="scheduling_list_box_wrap">
                            <div class="scheduling_list_box_item date">
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                            </div>
                            <div class="scheduling_list_box_item">
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                            </div>
                            <div class="scheduling_list_box_item full">
                                <div>约满</div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                            </div>
                            <div class="scheduling_list_box_item">
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                                <div></div>
                            </div>
                        </div>
                    </div>
                    <div class="scheduling_list_right">
                        <div class="date"><a href="#" class="iconfont icon_right">&#xe645;</a></div>
                        <div class="status"></div>
                        <div class="status"></div>
                        <div class="status"></div>
                    </div>
                </div>
                <div class="scheduling_rule">
                    <div class="scheduling_rule_caption">预约规则</div>
                    <div class="scheduling_rule_content">
                        <div class="rule_content_item">
                            <p>预约周期:<span>7天</span></p>
                        </div>
                        <div class="rule_content_item">
                            <p>放号时间:<span>8:30</span></p>
                        </div>
                        <div class="rule_content_item">
                            <p>停挂时间:<span>下午14:00停止次日预约挂号(周五14:00后停挂至下周一)</span></p>
                        </div>
                        <div class="rule_content_item">
                            <p>退号时间:<span>就诊前一工作日14:00前取消</span></p>
                        </div>
                        <div class="rule_content_item">
                            <p>特殊规则:<span>取号地点不同:西园区预约取号地点:西园区门诊一号大厅挂号窗口取号。
                                    东园区预约取号地点:东园区门诊一号大厅挂号窗口取号</span></p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="scheduling_tip">
                <i class="iconfont icontip">&#xe662;</i><span>您还没有选择就诊日期</span>
            </div>
        </div>
    </div>
 
    <div id="footer" class="footer">
        Copyright&nbsp;&nbsp;&nbsp;&nbsp;&copy;&nbsp;&nbsp;&nbsp;&nbsp;2017慕课网版权所有
    </div>
</body>
<script src="js/ui.js"></script>
<script>
    function openIndex(){
        window.open('index.html','_self');
    }
 
    //加载排班表数据
 
</script>
</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
layout.css
/*页面布局样式*/
*{
    padding0;
    margin0;
}
.wrap{
    width1000px;
    margin0 auto;
    positionrelative;
}
select,input{
    border0;
    outline0;
}
#top{
    height30px;
    background-color#f5f5f5;
}
#header{
    height92px;
}
#nav{
    height35px;
    background-color#60bff2;
}
.hospital_intro{
    height258px;
    margin30px 0 40px 0;
}
.hospital{
    height230px;
    background-color#f7f7f7;
}
.hospital_system{
    height460px;
    margin-bottom80px;
}
.hospital_system_caption{
    height30px;
    border-bottom2px solid #60bff2;
    margin-bottom20px;
}
.hospital_system_content{
    height410px;
}
.appointment_office{
    width708px;
    height408px;
    border1px solid #f4f6fa;
    floatleft;
}
.rule{
    width273px;
    height282px;
    border1px solid #f4f6fa;
    floatright;
}
#footer{
    height70px;
    background-color#eceef2;
}
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
index.css
/*页面样式*/
/*top模块*/
a {
    text-decorationnone;
}
 
.top {
    line-height30px;
    color#868686;
    font-size14px;
}
 
.top p.call {
    floatleft;
    backgroundurl("../img/icon-call.png"no-repeat 0 5px;
    text-indent20px;
}
 
.top p.welcome {
    floatright;
}
 
.top p.welcome a {
    color#2da5e1;
}
 
/*header 模块*/
.header .logo {
    width350px;
    height58px;
    padding20px 15px;
}
 
.header .logo img {
    width100%;
    height100%;
}
 
.header .search {
    width328px;
    height38px;
    background-color: orange;
    positionabsolute;
    right0;
    top29px;
}
 
/*nav 模块*/
.nav {
    line-height35px;
}
 
.nav a {
    display: inline-block;
    padding-left53px;
    color#fff;
}
 
.nav a:hover {
    color#d7f3ff;;
}
 
/*hospital_intro 医院介绍*/
.hospital {
    padding15px 25px 20px 25px;
}
 
.hospital_caption {
    height35px;
    border-bottom2px solid #dcdddd;
}
 
.hospital_caption p {
    font-size16px;
}
 
.hospital_caption .subname {
    font-size14px;
    color#f29600;
    margin-left13px;
}
 
.hospital_caption p.name {
    floatleft;
}
 
.hospital_caption p.info {
    floatright;
}
 
.hospital_caption p.info a {
    color#0000ff;
    margin-right14px;
}
 
.hospital_caption p.info a:last-child {
    margin-right0;
}
 
.hospital_caption p.info span {
    color#000;
}
 
.hospital_content {
    margin-top10px;
}
 
.hospital_content .left {
    width200px;
    height150px;
    backgroundurl("../img/hospital-1.jpg");
    floatleft;
}
 
.hospital_content .center {
    width447px;
    height157px;
    floatleft;
    margin-left30px;
}
 
.center .item {
    font-size14px;
    color#888888;
    margin-bottom18px;
}
 
.center .item span {
    line-height23px;
}
 
.center .item i {
    display: inline-block;
    width15px;
    height16px;
    margin-right15px;
}
 
.center .item:first-child i {
    backgroundurl("../img/icon-web.png"0 0;
}
 
.center .item:nth-child(2) i {
    backgroundurl("../img/icon-web.png"0 -22px;
}
 
.center .item:nth-child(3) i {
    backgroundurl("../img/icon-web.png"0 -44px;
}
 
.center .item:last-child i {
    backgroundurl("../img/icon-web.png"0 -65px;
}
 
.hospital_content .right {
    floatright;
    width250px;
    height165px;
    backgroundurl("../img/map-1.png");
}
 
/*hospital_system 医院体系*/
.hospital_system_caption a {
    display: inline-block;
    width110px;
    height30px;
    line-height30px;
    text-aligncenter;
    color#60bff2;
}
 
.hospital_system_caption a.item_focus {
    background-color#60bff2;
    color#fff;
}
 
.hospital_system_content .search {
    margin-top90px;
    height200px;
    border1px solid #DCDDDD;
    positionrelative;
}
 
.search .search_detail {
    width420px;
    height30px;
    positionabsolute;
    top50%;
    margin-top-15px;
    left50%;
    margin-left-210px;
}
 
.search_detail span {
    floatleft;
}
 
.search_detail input {
    height30px;
    width194px;
    border1px solid #dcdcdc;
    floatleft;
}
 
.search_detail .button {
    floatleft;
    width110px;
    height30px;
    margin-left5px;
    line-height30px;
    text-aligncenter;
    background-color#00B3EC;
}
 
.search_detail .button a {
    color#fff;
}
 
.appointment_office_caption {
    height44px;
    background-color#f4f6fa;
    line-height40px;
    padding-left30px;
}
 
.appointment_office_content .item {
    height90px;
    border-bottom1px solid #f4f6fa;
}
 
.appointment_office_content .item_caption {
    width144px;
    height80px;
    background-color#f2fbff;
    floatleft;
    text-aligncenter;
    padding-top10px;
}
 
.appointment_office_content .item_content {
    width560px;
    height100%;
    floatleft;
}
.appointment_office_content .item_content .link{
    display: inline-block;
    width100px;
    height27px;
    margin-left20px;
    padding-top3px;
    color#4c4948;
}
.rule {
    overflowauto;
}
 
.rule_caption {
    height40px;
    padding-left10px;
    background-color#f4f6fa;
    line-height40px;
    color#606060;
}
 
.rule_caption span {
    font-size14px;
    color#00b3ea;
}
 
.rule_content {
    height244px;
    padding15px 10px;
}
 
.rule_content .rule_content_item {
    line-height22px;
    margin-bottom10px;
}
 
.rule_content .rule_content_item p {
    width100%;
    color#555555;
}
 
.rule_content .rule_content_item span {
    color#888888;
}
 
/*footer 模块*/
.footer {
    text-aligncenter;
    line-height70px;
    color#acacac;
    font-size14px;
}
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
ui.css
/* 搜索 */
.ui-search{
    backgroundurl(../img/ui-search.jpg) center no-repeat;
    font-size14px;
    color#fff;
    positionrelative;
}
.ui-search-selected{
    width70px;
    height38px;
    line-height38px;
    positionabsolute;
    left0;
    top0;
    text-indent14px;
}
.ui-search-select-list{
    displaynone;
    positionabsolute;
    width67px;
    line-height24px;
    background-color#fff;
    box-shadow: 3px 3px 5px rgba(0,0,0,.2);
    left2px;
    top36px;
    z-index2;
}
.ui-search-select-list a{
    displayblock;
    color#A5a2a2;
    text-aligncenter;
}
.ui-search-select-list a:hover{
    background-color#ebeef5;
}
.ui-search-input{
    width208px;
    height26px;
    positionabsolute;
    top7px;
    left73px;
    line-height26px;
    font-size13px;
    color#A5A2A2;
 
}
.ui-search-submit{
    displayblock;
    positionabsolute;
    right0;
    top1px;
    width40px;
    height36px;
}
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
scheduling_layout.css
/*科室排班表页面布局样式*/
* {
    padding0;
    margin0;
}
 
.wrap {
    width1000px;
    margin0 auto;
    positionrelative;
}
 
select, input {
    border0;
    outline0;
}
.clearfix:after{
    content'';
    displayblock;
    clearboth;
    zoom: 1;
}
/*iconfont 字体*/
@font-face {
    font-family'iconfont';
    srcurl('../fonts/iconfont.eot');
    srcurl('../fonts/iconfont.eot?#iefix'format('embedded-opentype'),
    url('../fonts/iconfont.woff'format('woff'),
    url('../fonts/iconfont.ttf'format('truetype'),
    url('../fonts/iconfont.svg#iconfont'format('svg');
}
.iconfont {
    font-family"iconfont" !important;
    font-size40px;
    color#01b3f1;
    font-stylenormal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.icon_left{
    transform: rotate(180deg);
}
.icontip{
    font-size30px;
    vertical-alignmiddle;
    margin-right5px;
    color#a5a5a5;
}
#top {
    height30px;
    background-color#f5f5f5;
}
 
#header {
    height92px;
}
 
#nav {
    height35px;
    background-color#60bff2;
}
 
.hospital_intro {
    height258px;
    margin30px 0 40px 0;
}
 
.hospital {
    height230px;
    background-color#f7f7f7;
}
 
.scheduling {
    height425px;
    margin-bottom110px;
}
.scheduling_content{
    height325px;
}
.scheduling_list{
    width752px;
    height100%;
    floatleft;
    border1px solid #dcdddd;
}
.scheduling_rule{
    width244px;
    height100%;
    floatright;
    border1px solid #dcdddd;
}
.scheduling_tip{
    width100%;
    height65px;
    border1px solid #dcdddd;
}
 
 
 
#footer {
    height70px;
    background-color#eceef2;
}
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
scheduling.css
/*科室排班表页面样式 */
/*top模块*/
a {
    text-decorationnone;
}
 
.top {
    line-height30px;
    color#868686;
    font-size14px;
}
 
.top p.call {
    floatleft;
    backgroundurl("../img/icon-call.png"no-repeat 0 5px;
    text-indent20px;
}
 
.top p.welcome {
    floatright;
}
 
.top p.welcome a {
    color#2da5e1;
}
 
/*header 模块*/
.header .logo {
    width350px;
    height58px;
    padding20px 15px;
}
 
.header .logo img {
    width100%;
    height100%;
}
 
.header .search {
    width328px;
    height38px;
    background-color: orange;
    positionabsolute;
    right0;
    top29px;
}
 
/*nav 模块*/
.nav {
    line-height35px;
}
 
.nav a {
    display: inline-block;
    padding-left53px;
    color#fff;
}
 
.nav a:hover {
    color#d7f3ff;;
}
 
/*hospital_intro 医院介绍*/
.hospital {
    padding15px 25px 20px 25px;
}
 
.hospital_caption {
    height35px;
    border-bottom2px solid #dcdddd;
}
 
.hospital_caption p {
    font-size16px;
}
 
.hospital_caption .subname {
    font-size14px;
    color#f29600;
    margin-left13px;
}
 
.hospital_caption p.name {
    floatleft;
}
 
.hospital_caption p.info {
    floatright;
}
 
.hospital_caption p.info a {
    color#0000ff;
    margin-right14px;
}
 
.hospital_caption p.info a:last-child {
    margin-right0;
}
 
.hospital_caption p.info span {
    color#000;
}
 
.hospital_content {
    margin-top10px;
}
 
.hospital_content .left {
    width200px;
    height150px;
    backgroundurl("../img/hospital-1.jpg");
    floatleft;
}
 
.hospital_content .center {
    width447px;
    height157px;
    floatleft;
    margin-left30px;
}
 
.center .item {
    font-size14px;
    color#888888;
    margin-bottom18px;
}
 
.center .item span {
    line-height23px;
}
 
.center .item i {
    display: inline-block;
    width15px;
    height16px;
    margin-right15px;
}
 
.center .item:first-child i {
    backgroundurl("../img/icon-web.png"0 0;
}
 
.center .item:nth-child(2) i {
    backgroundurl("../img/icon-web.png"0 -22px;
}
 
.center .item:nth-child(3) i {
    backgroundurl("../img/icon-web.png"0 -44px;
}
 
.center .item:last-child i {
    backgroundurl("../img/icon-web.png"0 -65px;
}
 
.hospital_content .right {
    floatright;
    width250px;
    height165px;
    backgroundurl("../img/map-1.png");
}
 
/*scheduling 科室排班区域*/
.scheduling_caption {
    height33px;
    padding-left10px;
}
 
.scheduling_caption a {
    margin-left15px;
    color#00b3ec;
    font-size14px;
}
 
.scheduling_list {
    positionrelative;
}
 
.scheduling_list_left {
    floatleft;
}
 
.scheduling_list_right {
    floatright;
}
 
.scheduling_list_right,
.scheduling_list_left {
    width35px;
    height100%;
    border1px solid #DCDDDD;
}
 
.scheduling_list_right .date,
.scheduling_list_left .date {
    height45px;
}
 
.scheduling_list_right .status,
.scheduling_list_left .status {
    height93px;
    line-height93px;
    background-color#f2f8ff;
}
 
/*.scheduling_list_box {*/
    /*position: absolute;*/
    /*top: 0px;*/
    /*left: 36px;*/
/*}*/
.scheduling_list_box_wrap{
    positionabsolute;
    top0px;
    left36px;
    width99999px;
    transition: all 1s;
}
 
.scheduling_list_box .full div{
    background-color#e0eefd;
    color#4ab4ed;
    text-aligncenter;
    line-height91px;
}
.scheduling_list_box .scheduling_list_box_item div {
    width95px;
    height91px;
    border1px solid #DCDDDD;
    floatleft;
}
 
.scheduling_list_box .date div {
    width95px;
    height45px;
    border1px solid #DCDDDD;
}
 
.scheduling_rule {
    overflowauto;
}
 
.scheduling_rule_caption {
    height44px;
    line-height44px;
    margin-left8px;
}
 
.scheduling_rule_content {
    height244px;
    padding15px 10px;
}
 
.rule_content_item {
    line-height22px;
    margin-bottom10px;
}
 
.rule_content_item p {
    width100%;
    color#555555;
}
 
.rule_content_item span {
    color#888888;
}
 
.scheduling_tip {
    line-height65px;
    text-aligncenter;
    color#9f9f9f;
}
 
/*footer 模块*/
.footer {
    text-aligncenter;
    line-height70px;
    color#acacac;
    font-size14px;
}
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
ui.js
//ui-search定义
$.fn.UiSearch=function(){
    var ui=$(this);
    $('.ui-search-selected',ui).on('click',function(){
        $('.ui-search-select-list').show();
        return false;
    })
    $('.ui-search-select-list a',ui).on('click',function(){
        $('.ui-search-selected').text($(this).text());
        $('.ui-search-select-list').hide();
        return false;
    })
    $('body').on('click',function(){
        $('.ui-search-select-list').hide();
        return false;
    });
}
 
//ui-tab定义
$.fn.UiTab=function(header,content){
    var ui=$(this);
    var tabs=$(header,ui);
    var cons=$(content,ui);
 
    tabs.on('click',function(){
        var index=$(this).index();
        tabs.removeClass('item_focus').eq(index).addClass('item_focus');
        cons.hide().eq(index).show();
        return false;
    })
}
 
//页面脚本逻辑
$(function(){
    $('.ui-search').UiSearch();
    $('.hospital_system').UiTab('.hospital_system_caption >.item','.hospital_system_content >.item');
    $('.hospital_system .appointment_office_content .item_content')
        .UiTab('.item_content .link','.section_schedule >.item');
})

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

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

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

2回答
好帮手慕夭夭 2019-07-18 19:29:09

你好同学,参考如下调整:

科室排班分成左中右三部分,所以三部分都应该设置浮动,才会显示在一行。中间的盒子应该设置固定宽度,然后设置超出隐藏,这样让它默认显示出第一个星期的排班

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

设置如下:

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

上面设置父元素为参照点,所以子元素位置调整一下:

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

调整之后布局就出来了哦,如下

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

祝学习愉快,望采纳。

好帮手慕夭夭 2019-07-18 17:02:59

你好同学,科室排班表是如下区域:

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

同学给出的代码是如下:

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

是同学粘贴错了代码还是想要问预约开放科室的布局?把标题背景色去掉即可,这一块区域布局做的很不错了,不用修改哦。

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

如果是粘贴错了代码,请同学重新上传一下。祝学习愉快!望采纳。

  • 提问者 天青色烟雨蒙 #1
    是点击门诊链接之后,显示的科室排班表的布局,在scheduling.html,其中的scheduling_list_box_wrap是包裹动态的js添加的排班表的数据,我是想利用它的width设置它的left值,但是页面布局出来的效果不是很理想,所以想问老师该怎么解决
    2019-07-18 18:36:13
问题已解决,确定采纳
还有疑问,暂不采纳

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

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

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

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

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

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

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