强制页脚位于页面底部


Forced footer to the bottom of the page

我尝试了很多方法来完全放下我的页脚,但都无济于事。我正在寻找一种将图像、超链接和文本放入页脚的方法(因为我是stackoverflow上的新手,所以无法发布图像)http://liep2vsk.edu.lv/footer.png)。该网站的网页有不同的垂直长度,但我需要页脚始终向下滚动。

我想将页脚外包到一个单独的footer.php文件中,并通过include函数将其链接到一个网页中。

我试过使用页脚的包装器,但似乎不起作用http://liep2vsk.edu.lv/footer.php.我有没有说过我需要集中注意力?

附言:我是新来的,我知道我的网站代码不干净,因为有很多AP Div。尝试学习一些CSS基础知识。

<body style="position:absolute;height:100%">
  <div id="container" style="min-height:90%"></div>
  <div id="footer" style="position:fixed;margin-bottom:0px">
     <div id="apDiv1"><img src="ico/mail_1.png" width="256" height="256"></div>
     <div id="apDiv2">Some text</div>
  </div>
</body>

试试这个:http://jsfiddle.net/ubb3psmp/

<style>
.fixedFooter{
position:fixed;
bottom:0;
}
</style>
<div class="fixedFooter">
Something in footer!
</div>