css – IE9不支持显示:inline-flex吗?

前端之家收集整理的这篇文章主要介绍了css – IE9不支持显示:inline-flex吗?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我一直在寻找StackOverflow,甚至在哪里找到display:inline-flex;适用于IE9.我在此之前发布了一个问题,当我无法动态扩展宽度时,question here.

答案帮助了我,谢谢你,无论你是谁!既然我已经解决了这个问题,并且它在Chrome,Opera,Mozilla,Safari,IE10中运行良好,我仍然无法在IE9中完成这项工作.

我还尝试为显示添加预修复:inline-flex;例如display:-webkit-inline-Box,-ms-inline-flexBox等.

修复整个交易的问题是宽度:自动;并显示:inline-flex;

工作小提琴here

如何让它在IE9中工作?

解决方法

正如您在此处看到的:IE9中不支持 Can I use FlexBox? FlexBox

编辑:根据OP评论回答:

if there’s any way to make it work in IE9,with prefix or something?

这是来自另一个相关question的SO用户答案:

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.

猜你在找的CSS相关文章