Closed. This question needs debugging details。它当前不接受答案。












想改善这个问题吗?更新问题,以便将其作为on-topic用于堆栈溢出。

1年前关闭。



Improve this question




海兰

我在IE中遇到了一些麻烦:

http://jsfiddle.net/EvvBH/

请注意,#two元素具有flex: auto,即使内容不足,也可以将其扩展为填充容器。

但这仅在Chrome和Firefox中可以实现。在IE中,它根本不起作用。

IE不支持flex-grow吗?

最佳答案

如果有人尝试不是在 body 上而是在某个 child div上尝试。
您可以将高度设置为:0;在具有最小高度的元素上。

IE只是希望flex-grow auto元素的父元素具有任何高度。

所以看起来可能像这样:

.flex-parent{
  display: flex;
  min-height: 300px;
  height: 0;
}
.flex-child{
  flex: 1 1 auto;
}

关于css - flex-grow在Internet Explorer 11中不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24396205/

10-12 12:24
查看更多