📜  如何使 flex 容器整页 - CSS 代码示例

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

代码示例1
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper > * {
  padding: 20px;
}

.page-main {
  flex-grow: 1;
}