Is there a flex-grow for IE10?

冷暖自知 提交于 2019-12-07 10:05:31

问题


Caniuse states partial support with the -ms- prefix http://caniuse.com/#search=flex-grow as far as I can understand

Yet, when testing -ms-flex-grow has no effect in IE10, what am I missing here?


回答1:


[ANSWER UPDATED on November 2017]

flex-grow only supports internet explorer 11+, no -ms- prefix. https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow

To find out what works for IE 10, use Autoprefixer

1 - Set filter to "ie 10"

2 - Type in CSS, for example:

.example {
  flex-grow: 3;
}

3 - Autoprefixer result:

.example {
  -ms-flex-positive: 3;
  flex-grow: 3;
}

Now you know what prefix to use for IE 10




回答2:


The IE10 equivalent of flex-grow is -ms-flex-positive

For example,

-ms-flex-positive: 1;


来源:https://stackoverflow.com/questions/32605593/is-there-a-flex-grow-for-ie10

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