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