Hide div but keep the empty space

后端 未结 5 1715
庸人自扰
庸人自扰 2021-02-01 00:17

I have the following div element:

5条回答
  •  失恋的感觉
    2021-02-01 01:07

    Use visibility css property for this

    visibility:

    The visibility property specifies whether the boxes generated by an element are rendered.

    $(".description").css('visibility', 'hidden');
    

    Demo: Fiddle

提交回复
热议问题