弹性方向:列;在 IE 和 Edge 中不工作

Flex-direction: column; not working in IE and Edge

我有一个菜单,其中的列表项显示在使用 flexboxflex-direction:column 的垂直列表中。 它在除 IE 和 Edge 之外的所有浏览器中都运行良好。

我尝试了一些技巧,例如向 flex 容器添加 display flex,但它也不起作用。

有什么想法吗?

这是出现问题的网站:http://lesdeuxvagues.com/demo

点击菜单中的加号按钮查看问题

CSS:

ul{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

原来我只是通过将 display:block; 添加到我的列表项来解决问题。 他们有一个来自基础框架的 display:table-cell 可能导致了这个问题!