【问题标题】:Un-attach footer from the bottom of the browser从浏览器底部取消附加页脚
【发布时间】:2012-06-24 11:27:42
【问题描述】:

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

我为我乱七八糟的代码以及提出这个乏味的问题道歉

阿兰,16

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

【问题讨论】:

    标签: html css alignment positioning footer


    【解决方案1】:

    要做两件事:

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

    我认为应该可以。

    【讨论】:

    • 嗯,我认为这不应该发生。尝试再次检查您的链接,但它不起作用。这是否意味着你已经修复了它?
    【解决方案2】:

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

    #header {
        height: 110px;
        width: auto;
    }
    

    【讨论】:

      猜你喜欢
      • 2015-08-07
      • 2011-02-04
      • 2012-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-14
      • 2023-03-17
      • 1970-01-01
      相关资源
      最近更新 更多