Why does jQuery show/hide use display:none instead of visibility:hidden?

后端 未结 5 1228
野的像风
野的像风 2020-12-13 12:14

display:none means that the element isn\'t rendered as part of the DOM, so it\'s not loaded until the display property changes to something else.

5条回答
  •  情话喂你
    2020-12-13 12:26

    Visibility just makes the element invisible, but it would still take up space on the screen.

提交回复
热议问题