liuguobin

<div id="formula">

  
 设置为隐藏:
     $("#formula").css("display", "none");
设置为显示:
     $("#formula").css("display", "block"); 
用js控制:
  当标签flag为1时,显示。否则隐藏。 
 
if(flag==1){
      $("##formula").css("display", "block");
}else{
      $("##formula").css("display", "none");
}
 
使用jquery就相对简单多了:
    1. $("#formula").show();//显示div  
    2. $("#formula").hide();//隐藏div  

分类:

技术点:

相关文章:

  • 2022-01-29
  • 2022-02-11
  • 2021-11-05
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2021-12-18
  • 2021-12-18
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案