0
什么是创建页脚div的正确方法,我通常使用下面的代码来设置我的页脚div,我想知道footer div是如何用行业标准明智地编码的。我将如何设置页脚,以便在内容填满时它可以进入屏幕的底部。正确的(行业标准)设置页脚的方法
这里是我的HTML:
<div id="wrapper">
<div id="header"></div>
<div id="content"></div>
<div id="footer"></div>
</div>
这里是我的CSS:
html {
background:white;
height:100%;
}
#wrapper {
width:960px;
margin-right:auto;
margin-left:auto;
}
#header {
background:#000000;
min-height:30px;
}
#content {
background:orange;
min-height:500px;
padding:20px;
}
#footer {
clear:both;
background:black;
min-height:30px;
position:relative;
}
'业标准?'没有听说过。 – Praveen
那么我的代码是布局HTML文档的正确方法吗? – chris