利用flex布局,

<html>
  <body>
    <div class='container'>
      <div class='content'></div>
      <div class='footer'></div>
    </div>  
  </body>
</html>
#root {
  height: 100%  
}
.container {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  height:100%;
}

.content {
  -webkit-box-flex: 1;
  overflow: scroll;
}
.footer {
  height:100px;  
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-04-10
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2023-03-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案