-1

需要在浏览器底部附加页脚。当您滚动页面时,页脚不会移动。

我该怎么做?

4

1 回答 1

1
#footer{
    position: absolute;
    height: 60px; //or other fixed
    bottom: 0;
    left: 0;
    right: 0;
}

这种样式应该包含您所有的页脚内容。无论您向下滚动多少,这都会使其粘在页面底部。

要制作相同的东西或放在一边,您还应该使用absolute。

于 2013-03-13T23:52:00.827 回答