Flexbox in IE10

为君一笑 提交于 2019-12-22 03:21:38

问题


I'm trying to get flex box working in IE10 but it's not working. Safari, Chrome and Firefox are working fine, but IE10 doesn't wanna work. Anyone knows the answer?

codepen: http://codepen.io/anon/pen/vcEGH/

  display: -moz-box;              /* OLD - Firefox 19- (doesn't work very well) */
  display: -ms-flexbox;           /* TWEENER - IE 10 */
  display: -webkit-flex;          /* NEW - Chrome */
  display: flex;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */

  -webkit-box-direction: normal;
  -moz-box-direction: normal;
  -ms-flex-direction: row;
  -webkit-flex-direction: row;
  flex-direction: row;

  -webkit-box-lines: multiple;
  -moz-box-lines: multiple;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;

  -webkit-box-pack: justify;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;

回答1:


For IE10 , span should be displayed as inline-block to trigger layout somehow .


Test here if it fixes it : http://codepen.io/gc-nomade/pen/lhsEt



来源:https://stackoverflow.com/questions/23031813/flexbox-in-ie10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!