css结构如下
html结构如下,
html,body{
height: 100%
}
.containor{
min-height: calc(100% - {footer的高度})
}
html结构如下,
<html>
<body>
<div class= "containor"></div>
<footer></footer>
</body>
</html>
作者:Zimmer
链接:https://www.zhihu.com/question/19798646/answer/119144057
来源:知乎