stpangpang

 

javascript控制页面控件隐藏显示的两种方法,方法的不同之处在于控件隐藏后是否还在页面上占位 
方法一: 
document.all[
"PanelSMS"].style.visibility="hidden"

document.all[
"PanelSMS"].style.visibility="visible"

方法二: 
document.all[
"PanelSMS"].style.display="none"

document.all[
"PanelSMS"].style.display="inline"

方法一隐藏后 页面的位置还被控件占用 只是不显示 类似于.net验证控件的Display
=Static
 
方法二隐藏后 页面的位置不被占用 类似于.net验证控件的Display
=Dynamic 

分类:

技术点:

相关文章:

  • 2022-02-10
  • 2021-11-19
  • 2022-12-23
  • 2021-08-17
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2021-08-17
相关资源
相似解决方案