页脚绝对到底部但在包装内(footer absolute to bottom but within wrap)
我希望我的页脚是底部:0但同时它在包裹内,宽度等于968px。 我试过玩绝对和亲戚,而不是工作..
I want my footer to be bottom:0 but in the same time it's within the wrap, which width equal to 968px. I tried playing with absolute and relative, not work..
最满意答案
问题是你的包装器高度只有588px。 所以页脚会走到底部。
您可以通过以下方式解决此问题
.wrapper { position:absolute; min-height: 100%; left: 50%; margin-left: -484px; }The problem is that your wrapper is only 588px in height. So the footer is going to the bottom of that.
You can fix this, by:
.wrapper { position:absolute; min-height: 100%; left: 50%; margin-left: -484px; }更多推荐
发布评论