首页htmlcolumnCSS Layout - 如何创建固定高度两列布局与标题

CSS Layout - 如何创建固定高度两列布局与标题

我们想知道如何创建固定高度两列布局与标题。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#all {
  position: absolute;
  top: 0px;
  left: 0px;
  background: #EEE;
  margin: 0 auto;
  padding-top: 40px;
  width: 100%;
  height: 1200px;
}

#leftMenu {
  float: left;
  background: #888;
  height: 1000px;
  width: 250px;
}

#content {
  height: 1000px;
  background: #AAA;
}
</style>
</head>
<body>
  <div id="all">
    <div id="leftMenu"></div>
    <div id="content">some text</div>
  </div>
</body>
</html>