html - 如何获得双页脚?

标签 html css

我希望我的页脚能够很好地适应两行。但是我所拥有的拉伸(stretch)不够,底部应该是白色但显示为黑色背景。

    <footer>
  <div id="footer">
    <div class="inner-wrap clearfix">
      <div class="section about">

      </div>
  </div>
  <div id="bottom-footer">
    <div class = "inner-wrap clearfix">
      <p class="fotter-quote">
        <em>
          <i class = "fa fa-quote-left"></i>just live your life<i class = "fa fa-quote-right"></i>
        </em>

      </p>
    </div>
    <p>
  </div>
</footer>

这是我的CSS

footer #footer {
  width:100%;
  background-color: #222;
  padding: 60px 0px;
}

footer #bottom-footer{
  background-color: white;
}

最佳答案

我不知道这有什么难的

这是 Code

HTML

<div class="content">
Here is the Content
</div>

<footer>
  <div id="footer">
    <div class="inner-wrap clearfix">
      <div class="section about">
Footer 1
      </div>
  </div>
  </div>



   <div id="bottom-footer">
    <div class = "inner-wrap clearfix">
     Footer 2
    </div>

  </div>

</footer>

CSS

body{margin:0;padding:0}
.content{background:white; width:100%; height:700px}
#footer{    background: #2c3036;width:100%; height:300px}
#bottom-footer{background: #16a085;height:40px}

关于html - 如何获得双页脚?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35696110/

相关文章:

javascript - highcharts-ng 不显示饼图

html - 文本覆盖另一个文本,需要显示在下方

jQuery 链接按钮与 div

html - 当容器具有动态高度时设置 flex 元素的百分比高度

javascript - HTML 表 JQuery 自动小时总计

jquery - 使用 jQuery 选择 div 内容匹配的子元素并修改附近的其他元素

html 选择下拉滚动条 - 仅当存在下拉框时

php - 为什么我不能在 HTML 表格中指定单元格的宽度和高度?

css - 如何将 MatTable 中的特定单元格扩展到行高的 100%?

css - 带有菜单的响应式 Logo 定位