html - flex 包装 :wrap-reverse in Edge

标签 html css flexbox microsoft-edge

在下面的示例中, flex 元素从包装器的右上角开始流动:

div {
  outline: 1px solid teal;
}

#wrap {
  width: 400px;
  height: 200px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap-reverse;
}

#wrap div {
  width: 50px;
  height: 50px;
}
<div id="wrap">
  <div>1</div>
  <div>2</div>
  <div>3</div>
  <div>4</div>
  <div>5</div>
  <div>6</div>
</div>

但这是我在 Edge 中看到的:

enter image description here

使用 flex-direction: row; 它们看起来像这样:

enter image description here

但这是他们在 Edge 中的样子:

enter image description here

Edge 的行为是否正确?

最佳答案

Edge 似乎有 this bug在日期为 2016 年 4 月的版本中。

报告中指出(2017 年 3 月 29 日),从版本 15063 开始,此错误已得到修复。


旁注:修复后的版本似乎仅作为 Insider Preview 发布,但随着本月(2017 年 4 月)发布的 Creators Update,所有人都应该得到它

关于html - flex 包装 :wrap-reverse in Edge,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43271442/

相关文章:

jquery - 使用位置 : absolute in a container and jQuery

javascript - jquery 提交在 $.post 回调中不起作用

css - 我有以下 'heading-font'

php - 从数据库中检索数据时如何显示加载动画或进度条?

css - Flexbox 元素的完美圆形边框半径

html - 在 REACT 中使用 CSS

angularjs - Flex in grand(grand)children of row layout

javascript - 使第二个div从上到下滑动

css - 更改 Bootstrap Carousel 淡入淡出过渡

html - 元素不显示在其包含元素的边界之外