Difference between “visibility:collapse” and “display:none”

前端 未结 5 1668
醉酒成梦
醉酒成梦 2020-11-30 01:43

What is the difference between visibility:collapse and display:none?

5条回答
  •  眼角桃花
    2020-11-30 02:10

    You can also apply visibility: collapse on an element under a flexbox container (a flex item). It will act as you're applying it on an element with display: table-row or display: table-column

提交回复
热议问题