页面copyright部分始终居于页面底部
<!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>
作者:欢醉
公众号【一个码农的日常】 技术群:319931204 1号群: 437802986 2号群: 340250479
出处:http://zhangs1986.cnblogs.com/
码云:https://gitee.com/huanzui
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
公众号【一个码农的日常】 技术群:319931204 1号群: 437802986 2号群: 340250479
出处:http://zhangs1986.cnblogs.com/
码云:https://gitee.com/huanzui
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。