这个问题已多次发布,但我找不到一个可以帮助我找到解决方案的讨论。移动后,我怎样才能摆脱底部的这个额外空间#AnotherDiv?我也尝试了其他设置,例如使用外部 div(宽度 100%)并将 and 放置在#content内部#AnotherDiv,但之后#AnotherDiv根本不会留在底部(我使用了position absoluteand bottom0)。我想要的只是#AnotherDiv在页脚 div 的底部对齐。
#AnotherDiv {
position: relative;
bottom: 200px;
width: 100%;
height: 200px;
z-index: 1;
background-color: #00FF00;
}