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;}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM