日期:2014-05-17 浏览次数:20513 次
<div id="calendar"> …… </div>
//试了无效的方法 //this.Page.Response.Write(" <script>document.getElementById('calendar').style.display='none'; </script>"); //this.Page.Response.Write(" <script>$('#calendar').css('display','none'); </script>"); //this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(),"jsCode","document.getElementById('calendar').style.display='none';", true); //this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(),"jsCode","$('#calendar').css('display','none');", true);