页脚始终居于底部

<style>

body{position: absolute; min-height: 100%; 100%;}
content{padding-bottom:100px;} /***====padding-bottom的值为页脚的高度(若内容高度足够)====***/

footer{position: absolute; bottom: 0; 100%; clear: both;}  /***====若内容高度足够,则去掉定位属性====***/

</style>

原文地址:https://www.cnblogs.com/lrxsblog/p/6065441.html