The difference between the two methods is whether the control remains a placeholder on the page after it is hidden. The detailed sample code is as follows. You can feel the two methods of hiding and displaying the page control by using javascript, the difference between the methods is that the hidden controls still occupy space on the page.
Method 1:
The Code is as follows:
Document. all ["panelsms"]. style. visibility = "hidden ";
Document. all ["panelsms"]. style. visibility = "visible ";
Method 2:
The Code is as follows:
Document. all ["panelsms"]. style. display = "none ";
Document. all ["panelsms"]. style. display = "inline ";
Method 1 after hiding, the page location is still occupied by the control, but the display = static similar to the. net verification control is not displayed.
Method 2 after hiding, the page location is not occupied, similar to the display = dynamic of the. net verification control