I need a CSS snippet for hiding a HTML (with quite a lot of contents, including text and other divs), but still reserving space for it. 相关标签:
(with quite a lot of contents, including text and other divs), but still reserving space for it. 相关标签:
use document.getElementById("my").style.display = "none"; do not user visibility it only hide element but in display it remove the space acquired by element.
visibility: hidden
This will hide the element from the page but retain its place in the layout.