看看为什么黄块没有
2 回答
已采纳
qq_安安_17
TA贡献49条经验 获得超52个赞
<div id="container"> <div id="header"> <div id="header_middle"></div> </div> <div id="main"></div> <div id="content"></div> <div id="footer"></div> </div>
*{
margin: 0;
padding: 0;
}
#container{
width: 100%;
}
#header{
height: 60px;
background: blue;
}
#header_middle{
height: 100%;
width: 1200px;
background: gray;
margin: 0 80px;
}
#main{
height: 300px;
background: red;
}
#content{
height: 300px;
background: purple;
}
#footer{
height: 300px;
background: orange;
}就这么个结构吧,有黄色啊,你没看到黄色是不是因为content尺寸太大,你没有往下滑动继续看?

- 2 回答
- 0 关注
- 2051 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消
