【发布时间】:2019-07-30 05:16:18
【问题描述】:
Flex-end 适用于 chrome 和 firefox,但不适用于 ie,请查看以下代码
.flex-container { display: flex;
flex-wrap: nowrap;
background-color: DodgerBlue; flex-direction: column;flex-flow:column;
justify-content: flex-end;height:100px
}
<h1>Flexible Boxes</h1>
<div class="flex-container">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
</div>
<p>Try to resize the browser window.</p>
<p>A container with "flex-wrap: nowrap;" will never wrap its items.</p>
<p><strong>Note:</strong> Flexbox is not supported in Internet Explorer 10 or earlier versions.</p>
【问题讨论】:
-
哪个IE?
-
@TemaniAfif 即 11
-
@SarabjitSingh 试试这个stackoverflow.com/questions/32885534/… 希望这对你有用。
-
@NitinGarg 检查条件在我的例子中是高度 100px,在 chrome 和 IE11 中检查此代码,然后你就会明白差异
-
请仅在建议编辑时为问题添加相关标签。此外,您应该尽可能地改进问题,而不是只是添加标签。评论旨在描述您执行的什么操作以及为什么;它们不应该是单个复制粘贴的文本行,这对于确定您进行编辑的为什么很有帮助(而且,它拼写错误)。
标签: html css flexbox internet-explorer-11