📜  如何在 css 中水平和垂直居中内容 - 无论代码示例

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

代码示例1
.container {
  min-height: 100vh; // height of the browser viewport
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}