luca623
 AspShowMsg.InnerHtml = ShowMsgDiv("hello world");

   public static string ShowMsgDiv(string str)
        {
            StringBuilder Msg = new StringBuilder();
            Msg.Append("<div id=\"ASPalertLayer\" style=\"display:block;\">");
            // Msg.Append("<div id=\'ASPalertLayer\' style=\'display:block;\'>");也可以这样写但符号多的话还是用上面的那种比较好

            Msg.Append(str);
            Msg.Append("<p></p><p><a href=\"javascript:;\" onclick=\"document.getElementById(\'ASPalertLayer\').style.display=\'none\';document.getElementById(\'iFr\').style.display=\'none\';\">[关闭]</a></p></div>");
            return Msg.ToString();
        }

分类:

技术点:

相关文章:

  • 2021-09-29
  • 2022-01-10
  • 2021-07-26
  • 2021-12-08
  • 2022-01-01
  • 2022-01-02
  • 2021-11-04
猜你喜欢
  • 2020-02-27
  • 2021-12-23
  • 2021-12-23
  • 2021-12-04
  • 2021-08-17
  • 2022-02-10
  • 2021-09-29
相关资源
相似解决方案