html,body{height:100%}

.wraper{
  display:flex;
  flex-direction:column;
  height:100%;
   flex-wrap: nowrap;
  
}

div{
  border:1px solid red;
}

.top{
  height:20px;
}

.mid{
  border:1px solid green;
  flex:1;
}

.bottom{
  height:20px;
}

  

  <div class="wraper">
    <div class="top"></div>
    <div class="mid"></div>
    <div class="bottom"></div>    
  </div>

 

JS Bin on jsbin.com

 

相关文章:

  • 2021-11-15
  • 2021-09-14
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2021-06-17
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-10-19
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案