我的flex容器:
.back_pattern {
display: flex;
display: -ms-flexbox;
-ms-flex-pack: center;
flex-direction: column;
align-content: center;
justify-content: center;
min-height: 100vh;
width: 100%;
}
Run Code Online (Sandbox Code Playgroud)
在其他浏览器上一切正常.
ie11:http://take.ms/68dHo ;
chrome:http://take.ms/JhcEH有
什么问题?
Pao*_*gia 47
由于以下原因,Internet Explorer不完全支持Flexbox:
部分支持是由于存在大量错误(参见已知问题).
截图和信息来自caniuse.com
已知的问题:
display: flex并且flex-direction: column将不会正确计算其弯曲的子尺寸.看错误.min-heightheightflex是0 0 auto而不是0 1 auto最新规范中定义的值.min-height使用时不会正确地垂直对齐项目.看错误.Flexbugs是一个由社区策划的Flexbox问题列表,以及针对它们的跨浏览器解决方法.以下是可用解决方法和影响的浏览器的所有错误列表.
align-items: center溢出其容器min-height 在Flex容器上将不适用于其flex项目flexflex-basis忽略无单位值的简写声明flex项并不总是保留固有的宽高比flex-basis 不占 box-sizing: border-boxflex-basis 不支持 calc()align-items: baseline 不适用于嵌套的Flex容器flex-flow: column wrap不包含其物品margin: auto在四维轴上忽略列弹性项目flex-basis 不能动画max-width使用| 归档时间: |
|
| 查看次数: |
70076 次 |
| 最近记录: |