Make DIV invisible in CSS and JavaScript

后端 未结 6 1254
执笔经年
执笔经年 2021-02-07 00:49

I have managed to make a DIV tag invisible in JavaScript by setting the display to none and the visibility to hidden. It can be achieved with this class also:

.i         


        
6条回答
  •  清酒与你
    2021-02-07 01:06

    You can just use visibility:hidden if you want the element to be invisible but still rendered. display:none will remove it entirely and cause the scroll behavior you mentioned.

提交回复
热议问题