锅小兵

导航

HTML中将版权信息置于底部

html
<body>
 <div class="header">头部</div>
 <div class="content">主体</div>
 <div class="footer">底部</div>
</body>

css
*{margin:0;padding:0;box-sizing:border-box;}
html,body{height:100%;}
.header{height:60px;margin-bottom:-60px;background:red;positon:relative;}
.content{background:#ccc;min-height:100%;padding:60px 0 60px;}
.footer{height:60px;margin-top:-60px;background:#green;}

posted on 2020-02-27 11:33  锅蝈  阅读(1520)  评论(0)    收藏  举报