<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>3行1列</title>
<style>
*{
margin: 0;
padding: 0;
}
#container {
margin:0 auto;
width:900px;
height:500px;
}
#header {
height:100px;
background:#6cf;
margin-bottom:5px;
}
#main{
height:500px;
background:#cff;
margin-bottom:5px;
}
#footer {
height:60px;
background:#6cf;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
</div>
<div id="main">
</div>
<div id="footer">
</div>
</div>
</body>
</html>
友友们,对于这样的一段语言,父盒子的高度一开始是500像素,随着herder和main、footer高度的增加,最后盒子的高度应该是670个像素对吗?