根据 http://caniuse.com/#feat=flexbox,应该在IE10上使用供应商前缀就可以正常工作。但实际中并不行!更新:我刚检查了最新版本的Firefox,它看起来完全崩溃了。为什么?
<div id="wrapper" style="margin:auto;background-color:yellow;height:100%;">
<div style="width:50px;height:100%;">
<div class="fluid-column" style="height:80%;background-color:green;">
<div class="box" style="background-color:#ff99cc;height:25%;">1</div>
<div class="box" style="background-color:#ff33cc;height:50%;">2</div>
<div class="box" style="background-color:#ff66cc;height:25%;">3</div>
</div>
<div class="fix-column" style="height:20%;background-color:violet">
<div class="box" style="background-color:orange;height:50%;">Total</div>
<div class="box" style="background-color:blue;height:50%;">Test</div>
</div>
</div>
</div>
body, html{
width:100%;
height:100%;
margin:0;
padding:0;
}
div{
text-align:center;
}
.box
{
display:-webkit-box;-webkit-box-pack:center;-webkit-box-align:center;
display:-ms-box;-ms-box-pack:center;-ms-box-align:center;
display:-moz-box;-moz-box-pack:center;-moz-box-align:center;
}
-ms-flex-pack,-ms-flex-align
吗? - stackErr