Flexbox layout does not work in Internet Explorer 10

后端 未结 2 1149
一整个雨季
一整个雨季 2020-12-11 21:23

http://jsfiddle.net/J8rL7/87/

According to http://caniuse.com/#feat=flexbox

It should work for IE10 with vendor-prefix.

But it does not!

UPDA

2条回答
  •  自闭症患者
    2020-12-11 22:19

    You need to read the notes very closely on caniuse. "Partial support" refers to supporting one of two older drafts, and they don't make a note of which browser supports which draft. IE10 supports the March 2012 draft, and it's the only one that's known to do so.

    http://codepen.io/cimmanon/pen/ApHEy

    .box {
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -moz-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -moz-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
      /* fix for old FF */
      width: 100%;
    }
    

提交回复
热议问题