Make DIV invisible in CSS and JavaScript

后端 未结 6 1260
执笔经年
执笔经年 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:07

    I rather use a fixed height and width (height:0; width:0;). Don't forget to eliminate borders, paddings and margins.

提交回复
热议问题