此问题已发布多次,但我找不到一个讨论,这将有助于我找到解决方案。 在#AnotherDiv
移动之后,我该如何摆脱底部的多余空间? 我尝试其他设置,以及,像使用一个外的div(宽度100%)和放置#content
和#AnotherDiv
内,但随后的#AnotherDiv
不停留在在所有的底部(I使用position
absolute
和bottom
0)。我想要的是让#AnotherDiv
在页脚div的底部对齐。DIV定位(多个div,不同的Z索引)
#AnotherDiv {
position: relative;
bottom: 200px;
width: 100%;
height: 200px;
z-index: 1;
background-color: #00FF00;
}
我想你想设置'bottom'到'0px'(或只是将其删除),不是吗? – ubik 2013-04-21 16:10:56