📜  css set div heigtto screen - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:38.837000             🧑  作者: Mango

代码示例3
.left {
  height: 100vh;
  width: 50%;
  background-color: grey;
  float: left;
}

.right {
  height: 100vh;
  width: 50%;
  background-color: red;
  float: right;
}