jQuery .show() a flex box

前端 未结 9 1279
南笙
南笙 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:20

    $('#myFlexbox').show({
        start: function() {
            $(this).css('display', 'flex');
        }
    });
    

提交回复
热议问题