【发布时间】:2014-01-13 13:52:08
【问题描述】:
一段时间以来,我一直在尝试修复这个 div 的长度,我确信它是完全简单的,只是没有看到它。内容“页面”的 div 远远超出了页脚,我可以使用 css 中的 min-height 属性来操纵长度,但是我想确保无论内容如何,页脚/“页面” div 都延伸到底部所以我不想为 div 设置明确的长度。
编辑: jsfiddle:http://jsfiddle.net/F2SMX/
页脚cs
#footer {
background: #365F91;
color: #000000;
width:100%;
height: 35px;
position:relative;
bottom:0px;
clear:both;
}
#footer p {
margin: 0;
text-align: center;
font-size: 77%;
}
#footer a {
text-decoration: underline;
color: #FFFFFF;
}
#footer a:hover {
text-decoration: none;
}
将页脚位置从相对位置更改为绝对位置没有变化
【问题讨论】:
-
请提供小提琴!!
-
以后可以使用jsfiddle.net。这对每个人都好得多。