【问题标题】:Footer is not getting displayed at bottom页脚没有显示在底部
【发布时间】:2016-01-09 12:23:31
【问题描述】:

请查找页脚的 CSS 样式。

#footer {

  background-color: #000;

  bottom: 0px;

  color: #fff;

  clear: both;

  text-align: center;

  padding: 5px;

}

如何让页脚显示在页面底部(网络浏览器)?

【问题讨论】:

  • 请尝试点击此链接,希望对您有所帮助..stackoverflow.com/questions/3443606/…
  • 请提供实时链接或虚拟链接,我们也可以看到其他 css,您可以使用底部:0 和位置,但取决于结构..所以请提供虚拟链接..thnx

标签: html css express pug


【解决方案1】:

试试这个:

#footer {

  background-color: #000;

  bottom: 0px;

  color: #fff;

  clear: both;

  text-align: center;

  padding: 5px;

 position:absolute;

}

希望这会有所帮助

【讨论】:

    【解决方案2】:

    试试这个

    <div class="footer" id="footer">My Footer</div>
    

    页脚

    {

       clear: both; 
       border: 1px groove #aaaaaa;
       background: #000;
       color: #fff;
       padding: 0;
       text-align: center;
       vertical-align: middle;
       line-height: normal;
       margin: 0;
       position: fixed;
       bottom: 0px;
       width: 100%;
    

    }

    在这里试试http://jsfiddle.net/RDuWn/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-09
      • 2014-07-04
      • 2020-03-22
      • 1970-01-01
      • 2019-08-18
      • 1970-01-01
      • 1970-01-01
      • 2015-01-10
      相关资源
      最近更新 更多