Home > Article > Web Front-end > How to hide controls with JavaScript_javascript skills
The control is visible when style.display="block" or style.visibility="visible", and is invisible when style.display = "none" or style.visibility = "hidden".
The difference is that "display" not only hides the control, but also the hidden control no longer occupies the position occupied when displayed, while the control hidden by "visibility" only sets the control to be invisible, and the control still occupies the original position. Location.
Hide the above control so that it does not occupy the position on the page
Only hides the control, its position is still occupied