jQuery .show() a flex box

前端 未结 9 1277
南笙
南笙 2021-02-06 20:56

I have an element with a flexbox

    div#myFlexbox{ display:flex; }

after hide it and show it, it gets messed up.<

9条回答
  •  情书的邮戳
    2021-02-06 21:33

    You should wrap your display: flex content with an element.

      bind your javascript show/hide to '#flexWrapper'

    提交回复
    热议问题