动态粘我有问题,我的XHTML页面页脚的HTML页面...我希望把页脚总是在页面的结束,在它的底部,所以,当页面内容很差,页脚会粘在屏幕的底部,但是当页面长得多时,它会在页面的最后内容之后粘到页面上。页脚对底部
我该怎么做?
这是我的CSS文件
html {
height:98%;
margin: 0 auto 0 auto;
width:1280px;
padding:2px;
padding-bottom:0px;
}
body {
overflow:auto;
width:100%;
margin: 0 auto 0 auto;
height:100%;
}
#container {
min-height:100%;
height:100%;
margin:0 auto -50px;
}
#box {
min-height:100%;
}
#push {
height:50px;
clear:both;
}
#footer {
height:50px;
clear:both;
position:relative;
bottom:0px;
width:100%;
}
而且我的网页
<html>
<h:head></h:head>
<h:body>
<div id="conatiner">
<div id="box">
<header></header>
<div id="externalborder">
<div id="push"></div>
<div id="footer"></div>
</div>
</div>
</h:body>
</html>
[使页脚正确粘贴到页面底部]的可能的副本(http://stackoverflow.com/questions/3443606/make-footer-stick-to-bottom-of-page-correctly) –
您是否必须支持最终版本的IE?你可以使用'计算的()' – DaniP
它不是一个重复的,因为在其他职位的要求是不同的那种....我不得不使用它主要是Chrome和Firefox,我怎么能使用计算()? – RevivedPicard