老师我这个是出了什么问题?怎么整个HTML页面塌掉

老师我这个是出了什么问题?怎么整个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
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>城市医院预约挂号平台</title>
    <link rel="stylesheet" type="text/css" href="../css/layout.css">
    <link rel="stylesheet" type="text/css" href="../css/base.css">
    <link rel="stylesheet" type="text/css" href="../css/ui.css">
    <script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
</head>
<body>
     <div id="top" class="top">
         <div class="wrap">
            <p class="call">010-144/16412电话预约</p>
            <p class="wellcome">
                欢迎来到城市预约挂号统一平台&nbsp;&nbsp;请&nbsp;&nbsp;
                <a href="#">登录</a>&nbsp;&nbsp;
                <a href="#">注册</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="#">帮助中心</a>
            </p>
         </div>
     </div>
     <div id="header" class="header">
         <div class="wrap">
             <a href="#" class="logo">
                 <img src="../img/logo.png
                 alt="logo">
             </a>
             <div class="search ui-search">
                 <div class="ui-search-selected">医院</div>
                 <div class="ui-search-selected-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">
            <div class="link menu">全部科室
                <div class="menu-list ui-menu">
                    <div class="ui-menu-item">
                        <a href="#" class="ui-menu-item-department">内科</a>
                        <a href="#" class="ui-menu-item-disease">高血压</a>
                        <a href="#" class="ui-menu-item-disease">冠心病</a>
                        <div class="ui-menu-item-detail">
                            <div class="ui-menu-item-detail-group">
                                <div class="ui-menu-item-detail-group-caption">内科</div>
                                <div class="ui-menu-item-detail-group-list">
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                </div>
                                <div class="ui-menu-item-detail-group-caption">内科常见疾病</div>
                                <div class="ui-menu-item-detail-group-list">
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                            </div>
                        </div>
                    </div>
                    <div class="ui-menu-item">
                        <a href="#" class="ui-menu-item-department">内科</a>
                        <a href="#" class="ui-menu-item-disease">高血压</a>
                        <a href="#" class="ui-menu-item-disease">冠心病</a>
                        <div class="ui-menu-item-detail">
                            <div class="ui-menu-item-detail-group">
                                <div class="ui-menu-item-detail-group-caption">内科</div>
                                <div class="ui-menu-item-detail-group-list">
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                </div>
                                <div class="ui-menu-item-detail-group-caption">内科常见疾病</div>
                                <div class="ui-menu-item-detail-group-list">
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                                    <a href="#">心脑血管科</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <a href="#" class="link">按医院挂号</a>
            <a href="#" class="link">按疾病挂号</a>
            <a href="#" class="link">按科室挂号</a>
            <a href="#" class="link">最新公告</a>
            <a href="#" class="link right">社会知名医院</a>
        </div>
     </div>
     <div id="banner" class="banner">
         <div class="banner-slider"></div>
         <div class="banner-search">
             <div class="caption">
                 <span class="text">快速预约</span>
             </div>
             <div class="form">
                 <div class="line">
                     <select name="area"><option>医院地区</option></select>
                 </div>
                 <div class="line">
                     <select name="area"><option>医院等级</option></select>
                 </div>
                 <div class="line">
                     <select name="area"><option>医院名称</option></select>
                 </div>
                 <div class="line">
                     <select name="area"><option>医院科室</option></select>
                 </div>
             </div>
             <div class="submit">
                 <input type="button" class="button" value="快速查询">
             </div>
         </div>
         <div class="banner-help">
             <div class="caption">
                 <span class="text">帮助中心</span>
             </div>
             <div class="list">
                 <a href="#" class="link">账号指南</a>
                 <a href="#" class="link">预约指南</a>
                 <a href="#" class="link">账号找回</a>
                 <a href="#" class="link">常见问题</a>
             </div>
         </div>
     </div>
     <div id="content" class="content">
        <div class="wrap clearFix">
             <div class="content-tab">
                 <div class="caption">
                     <a href="#" class="item item-focus">医院</a>
                     <a href="#" class="item">科室</a>
                 </div>
                 <div class="block">
                     <div class="item">
                         <div class="block-caption">
                             <a href="#" class="block-caption-item block-caption-item_focus">全部</a>
                             <a href="#" class="block-caption-item">东城区</a>
                             <a href="#" class="block-caption-item">西城区</a>
                             <a href="#" class="block-caption-item">朝阳区</a>
                             <a href="#" class="block-caption-item">丰台区</a>
                             <a href="#" class="block-caption-item">石景山区</a>
                             <a href="#" class="block-caption-item">海淀区</a>
                             <a href="#" class="block-caption-item">门头沟区</a>
                         </div>
                         <div class="block-content">
                             <div class="block-list clearFix">
                                 <div class="item">
                                     <img src="../img/hospital-1.jpg" alt="XX医院">
                                     <div class="item-name">北京协和医院<span class="item-level">【三级甲等】</span></div>
                                     <div class="item-phone">电话:东院咨询台:010-69155564...</div>
                                     <div class="item-address">
                                         [东院]北京市东城区帅府园一号 [西院]北京市西城区大木仓...
                                     </div>
                                 </div>
                                 <div class="item">
                                     <img src="../img/hospital-1.jpg" alt="XX医院">
                                     <div class="item-name">北京协和医院<span class="item-level">【三级甲等】</span></div>
                                     <div class="item-phone">电话:东院咨询台:010-69155564...</div>
                                     <div class="item-address">
                                         [东院]北京市东城区帅府园一号 [西院]北京市西城区大木仓...
                                     </div>
                                 </div>
                                 <div class="item">
                                     <img src="../img/hospital-1.jpg" alt="XX医院">
                                     <div class="item-name">北京协和医院<span class="item-level">【三级甲等】</span></div>
                                     <div class="item-phone">电话:东院咨询台:010-69155564...</div>
                                     <div class="item-address">
                                         [东院]北京市东城区帅府园一号 [西院]北京市西城区大木仓...
                                     </div>
                                 </div>
                                 <div class="item">
                                     <img src="../img/hospital-1.jpg" alt="XX医院">
                                     <div class="item-name">北京协和医院<span class="item-level">【三级甲等】</span></div>
                                     <div class="item-phone">电话:东院咨询台:010-69155564...</div>
                                     <div class="item-address">
                                         [东院]北京市东城区帅府园一号 [西院]北京市西城区大木仓...
                                     </div>
                                 </div>
                             </div>
                             <div class="block-text-list clearFix">
                                 <a href="#" class="item">首都儿科研究所附属儿童医院
                                    <span class="level">【三级甲等】</span>
                                 </a>
                                 <a href="#" class="item">首都儿科研究所附属儿童医院
                                    <span class="level">【三级甲等】</span>
                                 </a>
                                 <a href="#" class="item">首都儿科研究所附属儿童医院
                                    <span class="level">【三级甲等】</span>
                                 </a>
                                 <a href="#" class="item">首都儿科研究所附属儿童医院
                                    <span class="level">【三级甲等】</span>
                                 </a>
                                 <a href="#" class="item">首都儿科研究所附属儿童医院
                                    <span class="level">【三级甲等】</span>
                                 </a>
                                 <a href="#" class="item">首都儿科研究所附属儿童医院
                                    <span class="level">【三级甲等】</span>
                                 </a>
                             </div>
                             <a href="#" class="block-more">更多医院</a>
                         </div>
                     </div>
                     <div class="item" style="display: none;">
                         科室内容
                     </div>
                 </div>
             </div>
             <div class="content-news">
                 <div class="caption">最新公告 <a href="#" class="more">|更多</a></div>
                 <div class="list">
                     <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="content-close">
                 <div class="caption">停诊公告 <a href="#" class="more">|更多</a></div>
                 <div class="list">
                     <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="footer" id="footer">
         Copyright&copy;2017慕课网版权所有
     </div>
     <script type="text/javascript" src="../js/ui.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
ui.css
/*搜索*/
.ui-search{
    backgroundurl(../img/ui-search.jpg) center no-repeat;
    font-size14px;
    color#fff;
    position:relative;
}
.ui-search-selected{
    width70px;
    height38px;
    line-height38px;
    positionabsolute;
    left0;
    top:0;
    text-indent14px;
}
.ui-search-selected-list{
    positionabsolute;
    width67px;
    line-height24px;
    background-color#fff;
    box-shadow: 3px 3px 5px rgba(0,0,0,.2);
    top36px;
    left2px;
    z-index2;
    displaynone;
}
.ui-search-selected-list a{
    displayblock;
    color#a5a2a2;
    text-aligncenter;
}
.ui-search-selected-list a:hover{
    background-color#ebeef5;
}
.ui-search-input{
    width208px;
    height26px;
    positionabsolute;
    top:5px;
    left73px;
    line-height26px;
    font-size13px;
    color#a5a2a2;
}
.ui-search-submit{
    displayblock;
    positionabsolute;
    right0;
    top:1px;
    width40px;
    height36px;
}
/*ui-menu 分类菜单*/
.ui-menu{}
 
.ui-menu-item{
    height22px;
    line-height22px;
    padding8px 5px 9px 6px;
    margin-left2px;
}
.ui-menu-item:hover{
    background-color#fff;
}
.ui-menu-item-department{
    floatleft;
    height22px;
    line-height22px;
    positionrelative;
    padding-left30px;
    font-size14px;
    color#fff;
}
.ui-menu-item-department:before{
    content" ";
    display:block;
    width22px;
    height21px;
    positionabsolute;
    left0;
    top1px;
    backgroundurl(../img/icon-menu.jpg) -22px 0 no-repeat;
}
.ui-menu-item-disease{
    font-size12px;
    floatright;
    padding-left5px;
    color#d7f3ff;
}
.ui-menu-item:hover .ui-menu-item-department{
    color:#333;
 
}
.ui-menu-item:hover .ui-menu-item-department:before{
    background-position-x: 0;
}
.ui-menu-item:hover .ui-menu-item-disease{
    color#868686;
}
.ui-menu-item:hover .ui-menu-item-detail{
    displayblock;
}
.ui-menu-item-detail{
    displaynone;
   positionabsolute;
   width500px;
   height393px;
   padding20px 10px 10px 29px;
   background#fff url(../img/bg-menu.jpg) center no-repeat;
   top0;
   left190px;
   box-shadow: 5px 5px 2px rgba(0,0,0,.1);
}
.ui-menu-item-detail-group{
    padding-bottom20px;
    text-alignleft;
}
.ui-menu-item-detail-group-caption{
    width100%;
    displayblock;
    height34px;
    line-height34px;
    color#666;
    font-size16px;
    font-weightbold;
}
.ui-menu-item-detail-group-list{
    line-height23px;
}
.ui-menu-item-detail-group-list a{
    display: inline-block;
    color#868686;
    margin-right8px;
    font-size12px;
    padding-bottom5px;
}
.ui-menu-item-detail-group-list a:after{
    content'|';
    color#ddd;
    padding-left8px;
}
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
base.css
p{
    margin:0;
    padding0;
    display: inline-block;
}
a{
    text-decorationnone;
}
select,input{
    border:none;
    outlinenone;
}
/*#top 模块内样式*/
.top{
    line-height30px;
    font-size13px;
    color:#868686;
}
.top .call{
    floatleft;
    padding-left20px;
    backgroundurl(../img/icon-call.png) no-repeat center left;
}
.top a{
    color:#2da5e1;
    padding-left10px
}
.top .wellcome{
    floatright;
}
.header .logo{
    width:402px;
    height74px;
    padding:9px 0;
    display: inline-block;
}
.header .logo img{
    width100%;
    height100%;
}
.header .search{
    width:326px;
    height38px;
    positionabsolute;
    right0;
    top29px;
   /* background-color: orange;*/
}
.nav .link{
    display: inline-block;
    floatleft;
    padding-left30px;
    line-height36px;
    color#fff;
    font-size16px;
    min-width80px;
    text-aligncenter;
}
.nav a:hover{
    color:#d7f3ff;
}
.nav .menu{
    width130px;
    padding-right30px
    background-color#1fa4f0;
    positionrelative;
}
.nav .menu .menu-list{
    background-color#1fa4f0;
    width100%;
    height:423px;
    positionabsolute;
    left:0;
    top:36px;
 
}
/* #banner 模块内样式 */
.banner-search{
    background-color#fafafa;
 
}
.banner-help .caption,
.banner-search .caption{
    height22px;
    padding:15px 0 15px 0;
    text-aligncenter;
 
}
.banner-help .caption .text,
.banner-search .caption .text{
    display: inline-block;
    height22px;
    line-height22px;
    padding-left28px;
    color:#fec009;
    font-size16px;
    backgroundurl(../img/icon-help.png) no-repeat 0 0;
}
.banner-search .form{
    height150px;
 
}
.banner-search .form .line{
    padding-bottom9px;
    text-aligncenter;
}
.banner-search .form .line select{
    width170px;
    font-size12px;
    z-index0;
    border:1px solid #dcdddd;
    height26px;
    line-height26px;
    padding:2px 0;
    color#666;
}
.banner-search .submit{
    height32px;
    text-aligncenter;
 
}
.banner-search .submit .button{
    width:108px;
    height33px;
    background-color#fecd09;
    font-size14px;
    color#fff;
    border-radius: 3px;
}
.banner-help{
    background-color:#fafafa;
}
.banner-help .caption .text{
    color:#00b3ea;
    background-position0 -23px;
}
.banner-help .link{
    color#003eee;
    display: inline-block;
    width:86px;
    height:26px;
    line-height26px;
    font-size14px;
    text-aligncenter;
    padding:0 0 8px 26px;
}
/* #content 模块样式*/
.content-news{
    background-color#fff;
    border:1px solid #f4f4fa;   
}
.content-close .caption,
.content-news .caption{
    height38px;
    line-height38px;
    background-color#f4f6fa;
    text-indent20px;
    color#fec009;
    font-size15px;
}
.content-close .more,
.content-news .more{
    floatright;
    padding-right22px;
    font-size12px;
    color:#868686
}
.content-close .list,
.content-news .list{
    padding:15px 20px 13px 35px;
    line-height29px;
    font-size12px;
    background:url(../img/list-yellow.jpg) 17px 22px no-repeat;
}
.content-close .list .link,
.content-news .list .link{
    displayblock;
    height29px;
    color:#969696;
}
.content-close{
    background-color#fff;
    border:1px solid #f4f6fa;   
}
.content-close .caption{
    color#4ab4ed;    
}
.content-close .list{
    backgroundurl(../img/list-blue.jpg) 17px 22px no-repeat;
}
.content-tab{
    backgroundnone;
}
.content-tab .caption{
    height34px;
    line-height34px;
    background-color#f5f6fa;
}
.content-tab .caption .item{
    displayblock;
    width112px;
    height34px;
    text-aligncenter;
    floatleft;
    color#00b3ea;
}
.content-tab .caption .item-focus{
    background-color#60bff2;
    color:#fff;
}
.content-tab .block{
    border:1px solid #f4f6fa;
    height452px;
}
.content-tab .block-caption{
    height26px;
    line-height26px;
    padding8px;
    border-bottom:1px solid #f4f6fa;
}
.block-caption-item{
    displayblock;
    padding:0 10px;
    font-size12px;
    color:#4c4948;
    floatleft;
}
.content-tab .block-caption-item_focus{
    background-color#60bff2;
    color:#fff;
}
.content-tab .block-content{
    padding:16px 12px;
 
}
.content-tab .block-content .block-more{
    displayblock;
    line-height55px;
    text-aligncenter;
    color#5084c4;
    font-size14px;
}
.content-tab .block-content .block-list .item{
    floatleft;
    width216px;
    height102px;
    padding0 20px 10px 120px;
    positionrelative;
    font-size12px;
}
.content-tab .block-content .block-list .item img{
    width110px;
    height98px;
    positionabsolute;
    left0;
    top0;
}
.content-tab .block-content .block-list .item .item-name{
    color#036eb7;
    font-size14px;
    line-height21px;
    padding-top13px
}
.content-tab .block-content .block-list .item .item-level{
    floatright;
    font-size12px;
    color#979797;
}
.content-tab .block-content .block-list .item .item-address,
.content-tab .block-content .block-list .item .item-phone{
    line-height18px;
    padding-bottom4px;
    color:#666;
}
/* 医院文案列表 --容器*/
.content-tab .block-content .block-text-list{
 
}
.content-tab .block-content .block-text-list .item{
    displayblock;
    width351px;
    height27px;
    font-size14px;
    color#666;
    padding-top8px;
    floatleft;
    border-bottom1px dashed #dcdddd;
}
.content-tab .block-content .block-text-list .item:nth-child(2n){
    margin-left13px;
}
.footer{
    line-height70px;
    text-aligncenter;
    font-size12px;
    color#666;
}
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
layout.css
body{
    margin0;
    padding:0;
}
.clearFix:after{
    content:" ";
    displayblock;
    height0;
    line-height0;
    clearboth;
    zoom:1;
}
.wrap{
    width1000px;
    margin:0 auto;
    positionrelative;
}
.top{           
    height30px;
    background-color#f5f5f5;                
}
.header{
    height92px;
}
.nav{
    height36px;
    background-color:#60bff2;
}
.banner{
    width802px;
    margin:0 auto;
    height414px;
    padding:9px 0 0 198px;
}
.banner-slider{
    floatleft;
    width544px;
    height414px;
    background-color:#8edff3;
}
.banner-search{
    floatright;
    width250px;
    height:255px;
    background-color:#eee;
}
.banner-help{
    floatright;
    width250px;
    height:146px;
    background-color:#ccc;
    margin-top:12px;
}
.content{
    padding10px 0 38px 0;
}
.content-tab{
    floatleft;
    width742px;
    height490px;
    background-color#eee;
}
.content-news,
.content-close{
    floatright;
    width248px;
    height236px;
    border:1px solid #ccc;
}
.content-close{
    margin-top:12px;
}
.footer{
    height70px;
    padding:25px 0;
    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
ui.js
//ui-search定义
 $.fn.UiSearch=function(){
    var ui=$(this);
    $('.ui-search-selected',ui).on('click',function(){
        $('.ui-search-selected-list').show();
        return false;
    });
    $('.ui-search-selected-list a',ui).on('click',function(){
        $('.ui-search-selected').text($(this).text());
         $('.ui-search-selected-list').hide();
 
         return false;
    });
    $('body').on('click',function(){
        $('.ui-search-selected-list').hide();   
    })
 }
//页面脚本逻辑
$(function(){
    $('.ui-search').UiSearch();
})


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

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

2回答
好帮手慕慕子 2020-09-07 09:38:19

同学你好,建议参考“慕慕4335856”这位同学,检查下是否是引入css文件路径问题,如果还有问题,可以点击“我要回答”将你的项目目录和实现的效果粘贴过来,便于帮助同学准确的定位与解决问题

祝学习愉快~

慕慕4335856 2020-09-07 02:36:02

应该是引入路径错了改href="css/layout.css"或者./css/layout.css

问题已解决,确定采纳
还有疑问,暂不采纳

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

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

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

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

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

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

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