纯css footer 贴底 ,简洁

来源:互联网 发布:餐厅排号软件 编辑:程序博客网 时间:2024/06/06 02:54
css结构如下
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
来源:知乎

原创粉丝点击