首页htmlcolumnCSS Layout - 如何创建3行和单列布局

CSS Layout - 如何创建3行和单列布局

我们想知道如何创建3行和单列布局。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {
  margin: 0;
  padding: 0;
}

div#header {
  width: 100%;
  height: 65px;
  position: fixed;
  z-index: 100;
  background-color: #F00;
}

div#footer {
  width: 100%;
  height: 65px;
  position: fixed;
  bottom: 0;
  background-color: #06F;
}

div#content {
  background-color: #111;
  width: 100%;
  height: 100%;
  position: absolute;
}
</style>
</head>
<body>
  <div id="container">
    <div id="header"></div>
    <div id="content"></div>
    <div id="footer"></div>
  </div>
</body>
</html>