为什么显示:-ms-flex; -ms-justify-content:center;不工作在IE10? [英] Why does display: -ms-flex; -ms-justify-content: center; not work in IE10?

查看:5450
本文介绍了为什么显示:-ms-flex; -ms-justify-content:center;不工作在IE10?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么以下代码在IE10中无效?

Why doesn't the following code work in IE10?

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

我需要写什么才能让他们工作?

What do I need to write in order for them to work?

推荐答案

IE10从 2012年3月。这些属性对应于这些属性:

IE10 implemented the Flexbox draft from March 2012. Those properties correspond to these:

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

这篇关于为什么显示:-ms-flex; -ms-justify-content:center;不工作在IE10?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆