日期:2014-5-17 浏览次数:20216次 点赞次数:20

点下按钮,css样式全部失效!!!急!!

   用了下面一个方法,一点按钮整个页面就乱了,CSS完全不起作用!代码哪里错了?求高手帮忙改改!

public static void Loading()
    {
        HttpContext hc = HttpContext.Current;
        hc.Response.Write("<div id='loading'> ");
        hc.Response.Write("<img src='loading.gif'/> ");
        hc.Response.Write("</div>");
        hc.Response.Write("<script type=text/javascript>");
        hc.Response.Write("function document.onreadystatechange()");
        hc.Response.Write(@"{ try  
                                   {
                                     if (document.readyState == 'complete') 
                                    {
                                          delNode('loading');
                                         
                                    }
                                    }
                                  catch(e)
                                     {