首页htmlcolumnCSS Layout - 如何创建具有相等宽度的两个列布局和在右侧列上堆叠的两个div

CSS Layout - 如何创建具有相等宽度的两个列布局和在右侧列上堆叠的两个div

我们想知道如何创建具有相等宽度的两个列布局和在右侧列上堆叠的两个div。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
html, body {
  height: 100%;
  width: 100%;
}

.col1 {
  width: 50%;
  height: 100%;
  background: #666;
  float: left;
}

.col2, .col3 {
  width: 50%;
  height: 50%;
  background: #333;
  float: left;
}

.col3 {
  background: #999;
}
</style>
</head>
<body>
  <div class="col1">column 01</div>
  <div class="col2">column 02</div>
  <div class="col3">column 03</div>
</body>
</html>