【发布时间】:2019-07-26 05:53:05
【问题描述】:
我在 IE11 的 flex 框中遇到了 margin: auto 的问题。
这是我期望的组织。空子没有内容,但 margin: auto 应该让它只占用整个剩余空间及其边距。
在 Chrome Firefox 或 Safari 上,我得到了我想要的结果 here。
但在 IE11 上,justify-content: flex-end 似乎没有任何影响,margin: auto 被简单地忽略,空子根本没有边距。
我已经花了一整天的时间,但没有找到任何解决方案......有什么想法吗?
编辑:这不是关于 居中 的问题,更多的是关于为什么 justify-content: flex-end 或 margin: auto 在布局上没有任何影响。
【问题讨论】:
标签: html css flexbox internet-explorer-11