为什么我的menu-box宽高都不对,麻烦看一下问题出在哪。图1是我的,图2是老师的

为什么我的menu-box宽高都不对,麻烦看一下问题出在哪。图1是我的,图2是老师的

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
*{
margin: 0;
padding: 0;
}
 
@font-face{
font-family:"iconfont";
src:url("../img/font/iconfont.eot");
src:url("../img/font/iconfont.eot") format("embedded-opentype"),
url("../img/font/iconfont.woff") format("woff"),
url("../img/font/iconfont.ttf") format("truetype"),
url("../img/font/iconfont.svg#iconfog") format("svg");
}
 
ul{
list-style: none;
}
 
a{
text-decoration: none;
}
 
a:link,a:visited{
/*text-decoration: none;*/
color: #333;
}
 
body{
font-family: "微软雅黑";
color: #14191e;
}
 
.main{
width: 1200px;
height: 460px;
margin: 30px auto;
overflow: hidden;
position: relative;
}
 
.banner{
width: 1200px;
height: 460px;
overflow: hidden;
position: relative;
}
 
.banner-slide{
width: 1200px;
height: 460px;
position: absolute;
background-repeat: no-repeat;
display: none;
}
 
.slide-active{
display: block;
}
 
.slide1{
background-image: url("../img/bg1.jpg");
}
 
.slide2{
background-image: url("../img/bg2.jpg");
}
 
.slide3{
background-image: url("../img/bg3.jpg");
}
 
.button{
position: absolute;
width: 40px;
height: 80px;
left: 244px;
top: 50%;
margin-top: -40px;
background: url(../img/arrow.png) no-repeat center center;
}
 
.button:hover{
background-color: #333;
opacity: 0.8;
filter: alpha(opacity=80);
}
 
.prev{
transform: rotate(180deg);
}
 
.next{
left: auto;
right: 0px;
}
 
.dots{
position: absolute;
right: 20px;
bottom: 24px;
text-align: right;
}
 
.dots span{
display: inline-block;
width: 12px;
height: 12px;
line-height: 12px;
border-radius: 50%;
background-color: rgba(7,17,27,0.4);
box-shadow: 0 0 0 2px rgba(255,255,255,0.8) inset;
margin-left: 8px;
cursor: pointer;
}
 
.dots span.active{
box-shadow: 0 0 0 2px rgba(7,17,27,0.4) inset;
background: #fff;
}
 
/* 导航菜单 */
.menu-box{
background: rgba(7,17,27,0.5);
opacity: 0.5;
width: 244px;
height: 460px;
position: absolute;
left: 0;
top: 0;
z-index: 1;
}
 
.menu-content{
width: 244px;
height: 454px;
position: absolute;
left: 0;
top: 0;
z-index: 2;
padding-top: 6px;
}
 
.menu-item{
height: 64px;
line-height: 66px;
font-size: 16px;
padding: 0 24px;
position: relative;
cursor: pointer;
}
 
.menu-item a:link, .menu.item a:visited{
color: #fff;
}
 
.menu-item a{
display: block;
border-bottom: 1px solid rgba(255,255,255,0.2);
padding: 0 8px;
height: 63px;
}
 
.menu-item i{
position: absolute;
right: 32px;
font-size: 24px;
top:2px;
font-family: "iconfont";
font-style: normal;
font-weight: normal;
color: rgba(255,255,255,0.5)
}
 
.sub-menu{
width: 730px;
height: 458px;
border: 1px solid #d9dde1;
background: #fff;
position: absolute;
left: 244px;
top: 0;
z-index: 10;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);
}
 
.inner-box{
width: 100%;
height: 100%;
background: url("../img/fe.png") no-repeat;
display: none;
}
 
.sub-inner-box{
width: 652px;
margin-left: 40px;
overflow: hidden;
}
 
.title{
color: #f01414;
font-size: 16px;
line-height: 16px;
margin:28px 0 30px 0;
font-weight: bold;
}
 
.sub-row{
margin-bottom: 25px;
}
 
.bold{
font-weight: bold;
}
 
.mr10{
margin-right: 10px;
}
 
.ml10{
margin-left: 10px;
}
 
.hide{
display: none;
}

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

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

1
<br>


正在回答

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

2回答

同学你好,反复查看后,发现同学的注释后多了一个"、",去掉就好了。如:

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

如果我的回答解决了你的疑惑,请采纳。祝:学习愉快~

  • 拉斐爾 提问者 #1
    粗心太可怕了,感谢老师,自己找半天没照出来
    2019-02-18 22:25:35
提问者 拉斐爾 2019-02-17 20:07:10
1
menu-box应该是可以找到的,换成老师的css文件就没问题
  • 问一下同学的问题解决了吗?祝:学习愉快~
    2019-02-18 10:40:02
  • 提问者 拉斐爾 回复 好帮手慕阿满 #2
    还是没找到,麻烦老师帮忙看一下,感谢
    2019-02-18 11:03:26
问题已解决,确定采纳
还有疑问,暂不采纳

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

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

0 星
从网页搭建入门Java Web2018版
  • 参与学习           人
  • 提交作业       1088    份
  • 解答问题       10204    个

如果你有Java语言基础,又想以后从事Java Web开发,那么本路径是你的不二选择!本路径从网页搭建开始入手,通过大量案例来学习Java Web基础。定能助你完成Java Web小白的蜕变!

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

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

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