Prevent flex items from overflowing a container

前端 未结 7 1770
说谎
说谎 2021-01-30 05:13

How do I make my flex item (article in this example), which has flex-grow: 1; not to overflow it\'s flex parent/container (main<

7条回答
  •  时光说笑
    2021-01-30 05:32

    I know this is really late, but for me, I found that applying flex-basis: 0; to the element prevented it from overflowing.

提交回复
热议问题