答案帮助了我,谢谢你,无论你是谁!既然我已经解决了这个问题,并且它在Chrome,Opera,Mozilla,Safari,IE10中运行良好,我仍然无法在IE9中完成这项工作.
我还尝试为显示添加预修复:inline-flex;例如display:-webkit-inline-Box,-ms-inline-flexBox等.
修复整个交易的问题是宽度:自动;并显示:inline-flex;
工作小提琴here
如何让它在IE9中工作?
解决方法
编辑:根据OP评论回答:
if there’s any way to make it work in IE9,with prefix or something?
I understand from your question,that you are aware of the fact that
IE9 does not support flexBox.
A polyfill for flexBox,named 07002,
does exist (not maintained afaik),but it works using the old 2009
Syntax of flexBox.Using the old Syntax is of course not recommended,
since the 2009 Syntax is really outdated and many browsers won’t
recognize it anymore. But,you can try to use 07003,which
transforms new-Syntax rules to old-Syntax rules (while preserving the
new-Syntax for browsers that do support it).There are caveats – You won’t be able to use inline-style,you would have to write your styles in CSS files,and I don’t think it supports dynamic changes to the
DOM.Disclaimer: I haven’t tried that method with IE9 + flexie.