IE10 flexbox widths include padding, causing overflow. box-sizing: border-box doesn't fix

前端 未结 5 1587
离开以前
离开以前 2021-02-01 02:49

The LHS flex child in this example has 1em padding, and it will cause RHS to overflow the parent:

5条回答
  •  抹茶落季
    2021-02-01 03:37

    I don't have access to IE10, but in IE11, I had to explicitly set flex-basis to auto:

    flex: 0 1 auto;
    

提交回复
热议问题