[英]Flex-direction: column; not working in IE and Edge
I have a menu with list item displayed in a vertical list using flexbox
and flex-direction:column
.我有一个菜单,列表项使用
flexbox
和flex-direction:column
显示在垂直列表中。 It's working great in all browsers except for IE and Edge.它在除 IE 和 Edge 之外的所有浏览器中都运行良好。
I tried tricks like adding display flex to the flex container but it's not working either.我尝试了一些技巧,比如将 display flex 添加到 flex 容器,但它也不起作用。
Any ideas ?有什么想法吗?
Here's the website where the problem happens : http://lesdeuxvagues.com/demo这是发生问题的网站: http : //lesdeuxvagues.com/demo
Click the plus button in the menu to see the problem点击菜单中的加号按钮查看问题
CSS: 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;
}
Turns out i just fixed the issue by adding display:block;
原来我只是通过添加
display:block;
解决了这个问题display:block;
to my list items.到我的清单项目。 They had a
display:table-cell
from the foundation framework that might have caused this problem!他们有一个
display:table-cell
来自可能导致这个问题的基础框架!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.