kni*_*ion 3 css css3 flexbox internet-explorer-11
.thing {
background-color: tomato;
max-width: 300px;
padding: 30px;
display: flex;
margin: 0 auto;
flex-flow: column wrap;
}
.not-centered {
max-width: 150px;
background-color: #fefefe;
margin: 0 auto;
}
Run Code Online (Sandbox Code Playgroud)
<div class="thing">
<div class="not-centered">
im not centeredi in ie11
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我认为它起作用,因为如果max-width
和margin: 0 auto
设置.但正如你所看到的那样,它不是水平居中的,因为他的父母.thing
有flex-flow: column wrap
.
有什么想法在这个设置中解决这个问题?
PS适用于Chrome/FF