JavaScript Control Page Controls Two Methods Hide Display

xiaoxiao2021-03-06  107

JavaScript Controlling the two ways of hiding the page control, the difference is that the control is hidden to place it on the page.

method one:

Document.all ["panelsms"]. style.visibility = "hidden";

Document.all ["panelsms"]. style.visibility = "visible";

Method Two:

Document.all ["panelsms"]. style.display = "none";

Document.all ["panelsms"]. style.display = "inline";

Methods The position of the page after hiding is also occupied by the control, but not displaying DISPLAY = static similar to .NET verification control

Method 2 The location of the page is not occupied by DISPLAY = Dynamic similar to .NET verification control.

转载请注明原文地址:https://www.9cbs.com/read-103518.html

New Post(0)