有没有办法叠加div?

时间:2016-05-17 20:48:21

标签: html css

我正在尝试将div叠加在一起,如下所示:

The image

我已经尽力做到了,但没有取得多大成功。这是我目前的代码:

.footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding-bottom: 48px;
  padding-top: 20px;
  background-color: #efefef;
  text-align: center;
}
#footerCloud {
  background: url(http://i.imgur.com/MyC7W9I.png);
  height: 64px;
}
<div id="footerCloud"></div>
<div class="footer"></div>

4 个答案:

答案 0 :(得分:1)

我认为你想要这样的东西,在相对父内部使用绝对元素使它工作:

body { background: #fff}
.footer {
  position: absolute;
  right: 0;
  bottom: -68px;
  left: 0;
  padding-bottom: 48px;
  padding-top: 20px;
  background-color: #efefef;
  text-align: center;
}

#footerCloud {
  background: url('http://i.imgur.com/MyC7W9I.png');
  height: 64px;
  position: relative;
}
<div id="footerCloud">
  <div class="footer"></div>
</div>

Fiddle here

答案 1 :(得分:1)

我不确定你到底想要什么,但只是删除绝对定位会清除大部分问题。颜色目前不匹配,但这超出了这个问题的范围......

.footer {
  background-color: #efefef;
  text-align: center;
  min-height: 50px;
}
#footerCloud {
  background: url(http://i.imgur.com/MyC7W9I.png);
  height: 64px;
}
<div id="footerCloud"></div>
<div class="footer"></div>

答案 2 :(得分:0)

您可以使用zIndex在CSS中堆叠元素(仅适用于定位元素)

html, body {
  height: 100%;
}

.table {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  display: table;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.cell {
  display: table-cell;
  vertical-align: middle;
}

.footer {
  position: absolute;
  top: 61px;
  bottom: 0;
  left: 1px;
  right: 0;
  padding-bottom: 48px;
  padding-top: 20px;
  background-color: #19487f;
  text-align: center;
}

#footerCloud {
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGYAAABACAYAAABY83HLAAAABGdBTUEAALGPC/xhBQAACjppQ0NQUGhvdG9zaG9wIElDQyBwcm9maWxlAABIiZ2Wd1RU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D/yBmoFDLr7ElJS996euGWrrznihIzGVl5stKaluVfHix5QRBFNpB3Z+YY5QVRZDeOjP2v02WNc9usdiOWLwEAAAD4Nu/Rpwh+wddiC8xiAOh3xNFJYTsnDIu6/5dmz3Q5MbN8/bbJX/xQ/PfGNls0EhA/vYkSQghupAAAAAAAAADgxTHKa1Ry8/ypQxau+/38by71ul9MzGRk5SnzSxpe33O07BFKiYinCwAAAAAAAAAAXSISQsjsSckr4iMMGWmLU8Wfv+CyiZm0d3aM3nWgaIupzRaJGSEAAAAAAAAAAFeOUiKMHRyxdcKwqPvSFqd2/uR3F3tDRlYerahvezJ7f8GrhGANLgAAAAAAAADAteAY5aNC/M+kjh80c9XDs5u8P/+3xEz65ly/g2eq3z9aVHs7EjIAAAAAAAAAAN2DY5QP0Knr500dPH3tstvLCPlZYmbFxuzk7P2FuU1ttggsXQIAAAAAAAAA6F6MUY9WJW9ddHPKpPRlc0p+TMw8+5etM7bsPrXD6eYVOHUJAAAAAAAAAKBncIzyeo2y+a6bh4+jhBDy2LpPHvps7+lNSMgAAAAAAAAAAPQ8SokQHqQtpQ+u+WDNrgNnV6JIAAAAAAAAAAB61/8BeMaNB+rDjqQAAAAASUVORK5CYII=');
  height: 64px;
}
<link href="https://necolas.github.io/normalize.css/4.1.1/normalize.css" rel="stylesheet"/>

<div class="table">
  <div class="cell">
    <h1>
      hello world
    </h1>
  </div>
</div>

<div id="footerCloud"></div>
<div class="footer"></div>

答案 3 :(得分:0)

这是一个简单的答案;我删除了绝对值:

&#13;
&#13;
.footer {
  right: 0;
  bottom: 0;
  left: 0;
  padding-bottom: 48px;
  padding-top: 20px;
  background-color: #efefef;
  text-align: center;
}
#footerCloud {
  background: url(http://i.imgur.com/MyC7W9I.png);
  height: 64px;
}
&#13;
<div id="footerCloud"></div>
<div class="footer"></div>
&#13;
&#13;
&#13;