funnyweb

让一个DIV对齐到底部

  #header {
    position: relative;
    min-height: 150px;
  }
  #header-content {
    position: absolute;
    bottom: 0;
    left: 0;
  }
<div id="header">
  <h1>Title</h1>
  <div id="header-content">Some content</div>
</div>

相对定位与绝对定位相结合

发表于 2016-12-18 18:01  愉快的一天  阅读(154)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-11-19
  • 2021-12-10
  • 2021-11-09
  • 2021-11-02
  • 2021-11-17
  • 2021-11-20
  • 2021-10-07
猜你喜欢
  • 2021-09-29
  • 2021-10-25
  • 2021-10-02
  • 2022-02-01
  • 2021-06-28
  • 2021-10-07
相关资源
相似解决方案