我在我的项目中使用页脚。我正在使用c#.net mvc。如何将页脚固定在底部?
我插入页脚。但我有问题。
当Body含量低意味着页脚上升。即低于身体内容。如果主体包含较少的内容,我希望脚注固定在页面的底部。
我该如何实现它?
.footer {
background: none repeat scroll 0 0 white;
border-top: 1px solid #e7eaec;
bottom: 0;
left: 0;
padding: 10px 20px;
position: absolute;
right: 0;
}
<div class="footer">
Bottom Page
</div>
的[正确地作出躯坚守页面底部]可能的复制(https://stackoverflow.com/questions/3443606/make-footer-stick-to-bottom-of-页面正确) – vassiliskrikonis
https://css-tricks.com/snippets/css/sticky-footer/ – athi