0

我很久以前编写了页脚,我可以弄清楚我做了什么将它附加到浏览器底部并停止页面滚动。我想要的是页脚位于#main div 下方,因此您必须向下滚动才能看到它。

我为我乱七八糟的代码和问这个乏味的问题道歉

阿兰,16

http://dl.dropbox.com/u/13722201/Dorset%20Designs/home.html

4

2 回答 2

0

要做两件事:

  1. 从您的#footer 中删除“position:fixed”
  2. 向其中添加“clear:both”

我认为这应该可行。

于 2012-06-22T07:08:30.123 回答
0

从您的元素中删除position:fixed和,因此页脚将是,bottom: 0#footer

#header {
    height: 110px;
    width: auto;
}
于 2012-06-22T07:10:58.577 回答