css - 为什么显示: -ms-flex; -ms-justify-content: center; not work in IE10?

标签 css internet-explorer-10 flexbox justify

<分区>

为什么以下代码在 IE10 中不起作用?

.foo {
    display: -ms-flex; 
    -ms-justify-content: center;
}

我需要写什么才能让它们起作用?

最佳答案

IE10 实现了来自 March 2012 的 Flexbox 草案.这些属性对应于:

.foo {
    display: -ms-flexbox;
    -ms-flex-pack: center;
}

关于css - 为什么显示: -ms-flex; -ms-justify-content: center; not work in IE10?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17695865/

相关文章:

javascript - css3 动画只发生一次

jquery - 如何创建水平无限滑动图库?

javascript - <ul> 和 <li> 标签的默认边距和填充

javascript - 从 html 页面中删除/禁用样式表

d3.js - IE10 d3.v3.js 错误 : Unable to get property 'prototype' of undefined or null reference

javascript - Internet Explorer 10 : text size changes itself randomly in Eclipse RAP application

html - 如何将 flex 元素居中?

internet-explorer-10 - 如何在 IE10 中检查元素(免费)

html - 如何在 Flex 容器中对齐正确的元素

html - 使 div 的所有子级占据 100% 高度和 100% 宽度,以便只有第一个子级可见