首页 > 其他 > 详细

页面底部固定于页面底部

时间:2014-03-18 20:23:57      阅读:530      评论:0      收藏:0      [点我收藏+]

body,html{margin: 0 auto;padding: 0;height:100%;}

.containt_main{min-height: 100%;_height: 100%;position: relative;}

 <div class="containt_main">

    <div class=‘footer‘  style=‘ position:absolute;bottom:0;‘> </div>

 </div>

一定要有html的css,containt_main的min-height: 100%;,然后footer:position:absolute;bottom:0;

页面底部固定于页面底部,布布扣,bubuko.com

页面底部固定于页面底部

原文:http://www.cnblogs.com/kaixiner/p/3608179.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!