一个简单的方法是让身体
100%您的网页,用
min-height的
100%了。如果页脚的高度没有变化,则效果很好。
将页脚的页边距设为负数:
footer { clear: both; position: relative; height: 200px; margin-top: -200px;}
一个简单的方法是让身体
100%您的网页,用
min-height的
100%了。如果页脚的高度没有变化,则效果很好。
将页脚的页边距设为负数:
footer { clear: both; position: relative; height: 200px; margin-top: -200px;}