string str = "<li>";
        int rows = 9;
        for (int i = 0; i < rows; i++)
        {

            str += "   <span> " + i.ToString() + "</span>";
            if (  i>0   && (i+1) % 2 == 0 && (i+1)<rows)
            {
                str += ("</li><li>");
            }

            if ((i + 1) == rows)
            {
                str += ("</li>");
            }
        }

        Response.Write(str);
        Response.End();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案