Fixed at the bottom of the page

<div class="container">
<div cass="header"></div>

<div class="body"></div>

<div class="footer"></div>
</div>

Second Case: footer is always fixed at its
bottom.container{position:relative;width:100%;min-height:100%;}
.body{padding-bottom:50px;}
.footer{height:50px;position:absolute; bottom:0px;left:0px;}



The first case: the footer scrolls with the scroll
bar.container{position:relative;width:100%;min-height:100%;}
.body{padding-bottom: 50px;}
.footer{height:50px;position:fixed;bottom:0px;left:0px;}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326979134&siteId=291194637