IE11是否仍支持flexbox的供应商前缀? [英] Does IE11 still support vendor prefixes for flexbox?

查看:75
本文介绍了IE11是否仍支持flexbox的供应商前缀?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据&https://msdn.microsoft.com/en-us/library/hh673531(v = vs.85).aspx

According to https://msdn.microsoft.com/en-us/library/hh673531(v=vs.85).aspx

" 小心    Internet
Explorer  11不再支持Flexbox属性的Microsoft供应商前缀("-ms-")版本。您应该使用非前缀名称,这是更好的标准合规性和未来兼容性的首选。"

根据我的经验,这不是真的 - 至少不适用于像flex这样的规则(-grow,-shrink,-basis)。当使用供应商前缀编写时,flex的简写适用于IE11:

.item {
    -ms-flex: 1 1 0%;
}

...在IE11中运行正常。尝试不使用CSS hack来定位IE11中的这个特定问题(因为在12 + Edge中修复了。)

...works fine in IE11. Trying not to resort to CSS hack for targeting this particular issue in IE11 (since fixed in 12 + Edge.)

我找不到关于供应商前缀问题的可靠答案。

I cannot find a solid answer regarding the vendor prefix issue.

提前感谢任何见解: - )

Thanks in advance for any insight :-)

推荐答案

嗨bobprokop,

Hi bobprokop,

根据我的经验,-ms-flex和flex都可以在IE 11中运行。

Based on my experience both of the -ms-flex and flex can work in IE 11.

我认为注意信息表明我们使用flex代替-ms-flex以获得更好的标准兼容性和未来兼容性。

I think the Caution information suggest that we use flex instead of -ms-flex for better standards compliance and future compatibility.

但是,为了与早期版本的IE兼容, IE 11仍然支持-ms-flex。

However, in order to compatible with earlier version of IE, the IE 11 still supports the -ms-flex.

最好的问候,

Jean


这篇关于IE11是否仍支持flexbox的供应商前缀?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆