Internet Explorer doesn't honor my min-height: 100% with flexbox

前端 未结 6 1718
借酒劲吻你
借酒劲吻你 2021-02-01 21:20

I\'ve been looking through all the min-height: 100% solutions on StackOverflow and the web and I can\'t seem to find one that fits my (relatively simple) needs.

Here\'s

6条回答
  •  暖寄归人
    2021-02-01 21:40

    USE height: 100% for IE

    IE will ignore min-height property here, but chrome will pick it.

    i am not sure about the reason but i hope it works fine.

    .container {
      display: flex;
      align-items: stretch;
      height: 100%;
      min-height:100%;
    }
    

    Codepen

    http://codepen.io/anon/pen/KDJjC

提交回复
热议问题