`-ms-flex: 1` 属性ie10浏览器是不是不支持?

flex 布局,其他属性都正常显示, 唯独 -ms-flex: 1 显示不了效果,请问有什么办法?

阅读 3.2k
1 个回答

IE 11 部分支持!
参见:can i use "-ms-flex"

IE 11 requires a unit to be added to the third argument, the flex-basis property see MSFT documentation
In IE10 and IE11, containers with display: flex and flex-direction: column will not properly calculate their flexed childrens' sizes if the container has min-height but no explicit height property. See bug.
IE 11 does not vertically align items correctly when min-height is used see bug

IE 11要求将一个单元添加到第三个参数,flex-basis属性请参见MSFT文档
在IE10和IE11中,如果容器具有最小高度但没有明确的高度属性,则具有display:flex和flex-direction:column的容器将无法正确计算其弯曲的子节点大小。
当使用最小高度时,IE 11不会正确地垂直对齐项目

推荐问题