首页 > 其他 > 详细

页面copyright部分始终居于页面底部

时间:2014-04-04 06:57:02      阅读:595      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
*{margin:0;padding:0;}
html,body{height:100%;color:#fff;}
.main{background:#ccc;_height:100%;min-height:100%;}
.main_m{padding-bottom:60px;background:#333;height:10px;}
.footer{width:100px%;height:50px;background:black;margin-top:-50px;}
</style>
</head>

<body>
<div class="main">
 <div class="main_m">这里加内容,这里用了padding-bottom把footer的高度留出来</div>
</div>
<div class="footer">这是底部</div>
</body>

</html>
bubuko.com,布布扣

 

页面copyright部分始终居于页面底部,布布扣,bubuko.com

页面copyright部分始终居于页面底部

原文:http://www.cnblogs.com/zhangs1986/p/3642749.html

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