📜  粘性页脚 - CSS 代码示例

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

代码示例3
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}