Css IE柔性箱模型不工作

Css IE柔性箱模型不工作,css,flexbox,Css,Flexbox,我试图在我的网站中实现灵活的盒子模式,虽然它适用于诸如chrome和safari之类的webkit浏览器,以及诸如mozilla和opera之类的其他浏览器,但无论我做什么,我似乎都无法在Internet Explorer中使用它。下面是我的Css样式表文件的一小段,其中包含my.holder类,该类包含所有内容,以及my#new_div id,它是.holder的子类,包含我的文章和边栏的主要部分 .holder { width:100%; margin:auto; d

我试图在我的网站中实现灵活的盒子模式,虽然它适用于诸如chrome和safari之类的webkit浏览器,以及诸如mozilla和opera之类的其他浏览器,但无论我做什么,我似乎都无法在Internet Explorer中使用它。下面是我的Css样式表文件的一小段,其中包含my.holder类,该类包含所有内容,以及my#new_div id,它是.holder的子类,包含我的文章和边栏的主要部分

.holder
{
    width:100%;
    margin:auto;
    display:-webkit-box;
    display:-o-box;
    display:-ms-box;
    display:-box;
    display:-pie;
    -webkit-box-orient:vertical;
    -moz-box-orient:vertical;
    -o-box-orient:vertical;
    -ms-box-orient:vertical;
    -box-orient:vertical;
    -pie-box-orient:vertical;
    -moz-box-flex:1;    /* Firefox, seamonkey etc */
    -o-box-flex:1;      /* Opera */
    -ms-box-flex:1;     /* MSIE */
    -box-flex:1;         /* Any that support full implementation */
    -pie-box-flex:1;
    -webkit-box-flex:1;
    -webkit-box-pack:center;
    -o-box-pack:center;
    -ms-box-pack:center;
    -pie-box-pack:center;
    -box-pack:center; 
    text-align:center;
    behavior: url(../../Content/pie/PIE.htc);
}

.holder #new_div
{
    width:940px;
}
.holder div
{
    -webkit-box-pack:center;
    -o-box-pack:center;
    -ms-box-pack:center;
    -box-pack:center; 
    -pie-box-pack:center;
    behavior: url(../../Content/pie/PIE.htc);
}
#new_div
{
    margin:auto;
    display:-webkit-box;
    display:-moz-box;
    display:-o-box;
    display:-ms-box;
    display:-box;
    display:-pie-box;
    text-align:left;
    -webkit-box-flex:1;
    -moz-box-flex:1;    /* Firefox, seamonkey etc */
    -o-box-flex:1;      /* Opera */
    -ms-box-flex:1;     /* MSIE */ 
    -box-flex:1; 
    -pie-box:1;     
    -webkit-box-pack:center;
    -box-pack:center;
    -moz-box-pack:center;
    -o-box-pack:center;
    -ms-box-pack:center; 
    -pie-box-pack:center;
    background-color:#25282D;
    -webkit-box-orient:horizontal;
    -moz-box-orient:horizontal;
    -o-box-orient:horizontal;
    -ms-box-orient:horizontal;
    -box-orient:horizontal;
    -pie-box-orient:horizontal;
    min-width:940px; 
    padding:20px;
    behavior: url(../../Content/pie/PIE.htc);
}
在那里你可以看到我有一个-ms盒子-。。名称是在其他定义的旁边定义的,但是它似乎仍然没有注册。我曾在绝望中尝试过使用CSS3Pie库,尽管这不起作用,尝试过为IE安装Chrome插件,但也失败了,我对该怎么做完全没有想法。也许我已经写过的css有语法问题,但正如我所说,它在其他浏览器中运行良好。有什么建议或提示吗?

IE不使用,它使用的是不推荐的。Opera支持不带前缀的属性以及-webkit-prefix下的2009属性

.holder {
  width: 100%;
  margin: auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
}

.holder #new_div {
  width: 940px;
}

.holder div {
  /* justify-content does nothing here since this element isn't a flex container */
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

#new_div {
  margin: auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  text-align: left;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  /* this shouldn't be necessary, as the default direction is `row` */
  -webkit-box-orient: horizontal;
  -moz-box-orient: horizontal;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  min-width: 940px;
  padding: 20px;
}
同样值得注意的是,这需要IE10+

IE不使用,它使用的是不推荐使用的。Opera支持不带前缀的属性以及-webkit-prefix下的2009属性

.holder {
  width: 100%;
  margin: auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
}

.holder #new_div {
  width: 940px;
}

.holder div {
  /* justify-content does nothing here since this element isn't a flex container */
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

#new_div {
  margin: auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  text-align: left;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  /* this shouldn't be necessary, as the default direction is `row` */
  -webkit-box-orient: horizontal;
  -moz-box-orient: horizontal;
  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  min-width: 940px;
  padding: 20px;
}

同样值得一提的是,这需要IE10+

在这里直接说明这一点,证明内容:专栏是在2012年3月发布的flex direction之外添加的?使用-webkit-和-moz-前缀orient:horizontal,就不再需要它了,而是用column代替了?很抱歉,我对css3的问题反应过早,我还是个新手。你需要什么属性取决于你想针对哪个浏览器。Firefox还没有过渡到使用标准属性,它仍然停留在2009年。Safari和除Blackberry 10之外的所有移动webkit浏览器也是如此。谢谢兄弟!!!感谢您的帮助和支持,我永远不会知道这一点!为了澄清这一点,请验证内容:该专栏是在2012年3月发布的flex direction之外添加的?使用-webkit-和-moz-前缀orient:horizontal,就不再需要它了,而是用column代替了?很抱歉,我对css3的问题反应过早,我还是个新手。你需要什么属性取决于你想针对哪个浏览器。Firefox还没有过渡到使用标准属性,它仍然停留在2009年。Safari和除Blackberry 10之外的所有移动webkit浏览器也是如此。谢谢兄弟!!!感谢您的帮助和支持,我永远不会知道这一点!Flexbox浏览器支持的可能重复:Flexbox浏览器支持的可能重复: