1. through css
#footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width:100%;
background:#999;
}
2. jQuery Easy Pinned Footer
http://jack-fx.com/net/2013/05/21/sticky-footer-fixed-footer-pinned-footer/
本文介绍了一种使用 CSS 实现固定页脚的方法,并提供了一个利用 jQuery 的易用方案。通过设置 position 属性为 fixed,可以确保页脚始终显示在页面底部,同时提供了具体的样式代码示例。
1. through css
#footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width:100%;
background:#999;
}
2. jQuery Easy Pinned Footer
http://jack-fx.com/net/2013/05/21/sticky-footer-fixed-footer-pinned-footer/
转载于:https://www.cnblogs.com/skywind/archive/2013/05/21/sticky-footer-fixed-footer-pinned-footer-2.html

被折叠的 条评论
为什么被折叠?