【问题标题】:Flex and flex-direction: column; IE11 Issueflex 和 flex-direction: 列; IE11 问题
【发布时间】:2019-02-25 15:40:49
【问题描述】:

遇到了一个奇怪的问题,我在 IE11 中使用 flex 和 flex-direction: column 时有很多重叠的内容。

我在这里阅读了许多建议使用 flex: 1 的答案,但这似乎并没有解决我的问题。有人对我在这里可能遗漏的内容有任何其他建议吗?

提前谢谢你,

尼克

损坏的网站网址:http://8b220f.3.ekm.shop

.c-product--compact .c-product__attributes-wrapper {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-pack: end;
   -ms-flex-pack: end;
   justify-content: flex-end;
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   -ms-flex-direction: column;
    flex-direction: column;
}


.o-grid__item {
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
   padding-left: 1.5rem;
   width: 100%;
}

【问题讨论】:

标签: css flexbox internet-explorer-11


【解决方案1】:

在 IE10-11(和其他浏览器)的 flexbox 实现中存在一些错误 - 你可以阅读它们 here

尝试在 flex-children 上设置 flex: 1 1 auto; 而不是 flex: 1;

【讨论】:

  • @NickElse 我在 IE11 中添加了.c-product--compact .c-product__link > .o-grid { flex: 1 1 auto; } ,它似乎有效。
  • 很抱歉以这种方式与您联系(我的评论与您在此处的输入无关)。我遇到了一个你在“分类”中投票的问题,你做出了错误的选择。请:仔细研究分类帮助,避免将不属于那里的项目放入编辑队列。我希望您将此视为改善投票的机会。我特指stackoverflow.com/review/triage/21156904。如果您对我有其他问题或反馈,请随时给我留言。如果你给我一个简短的提示,我会迅速删除这条评论。
猜你喜欢
  • 2017-08-03
  • 2018-07-21
  • 2016-11-21
  • 2019-06-23
  • 2016-11-19
  • 2020-06-26
  • 1970-01-01
  • 2018-01-11
  • 2019-08-18
相关资源
最近更新 更多