parent hidden but children still visible (I don't want them visible)!

前端 未结 4 1566
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 02:55

Okay, so I had a situation where I needed to add some cloned DOM elements to a parent DIV element in a web page.

I had four of these parent DIV holders. When I make

4条回答
  •  萌比男神i
    2020-12-29 03:20

    Remove the visibility:visible property from the children. That will fix your problem. You could be using .hide() and .show() (or .toggle()) on the parent instead to set the display to none instead of hidden.

提交回复
热议问题