jQuery hide element while preserving its space in page layout

后端 未结 5 938
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 03:34

Is there a way in jQuery where I can hide an element, but not change the DOM when it\'s hidden? I\'m hiding a certain element but when it\'s hidden, the elements below it mo

5条回答
  •  我在风中等你
    2020-11-28 04:02

    in another answer it is noted that jQuery's fadeTo does not set display:none on completion so might also provide a solution here, rather than using fadeOut for example:

    jQuery, hide a div without disturbing the rest of the page

提交回复
热议问题