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

前端 未结 5 1589
离开以前
离开以前 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:23

    I had similar problems with flexbox and box-sizing: border-box;. The latter one just doesn't seem to work in IE. Width wouldn't work in this case since padding will change it - but if you can use max-width, that should fix the problem.

提交回复
热议问题