首页htmlcolumnCSS Layout - 如何创建具有标题和内容的单列布局

CSS Layout - 如何创建具有标题和内容的单列布局

我们想知道如何创建具有标题和内容的单列布局。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#main {
  width: 1000px;
  min-height: 1000px;
  height: auto;
  position: absolute;
  left: 170px;
  overflow: hidden;
  border: 1px dotted blue;
}

#header {
  width: 100%;
  height: 250px;
  background:#EEE;
}

#content {
  width: 100%;
  height: 1000px;
  position: relative;
  top: 20px;
  background:#AAA;
}
</style>
</head>
<body>
<body>
  <div id='main'>
    <div id='header'>header</div>
    <div id='content'>content</div>
  </div>
</body>
</body>
</html>