zoukankan      html  css  js  c++  java
  • 控制 table td 输出 【原】

    Response.Write("<table width='90%' align='center' border='0' cellpadding='3' cellspacing='0' style='border:1px solid #CCCCCC'>\n");
            Response.Write("<tr>\n");
            int columnLimit = 11;
            int columnNo = 0;
            for (int i = 0; i < dataSuppliers.Length; i++)
            {
                if (!dataSuppliers[i].Equals(""))
                {
                    if (columnNo < columnLimit) { columnNo++; }
                    else
                    {
                        Response.Write("</tr>\n");
                        Response.Write("<tr>\n");
                        columnNo = 1;
                    }
                    if (recordExists[i])
                    {
                        string url = "<a href='EnterpriseInfoShow.aspx?creditID=" + creditID + "&dataSupplier=" + dataSuppliers[i] + "'>" + dataSuppliers[i] + "</a>";
                        Response.Write("<td align='center' style='border-right:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;'>" + url + "</td>\n");
                    }
                    else
                    {
                        Response.Write("<td align='center' style='border-right:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;'><font color='#AAAAAA'>" + dataSuppliers[i] + "</font></td>\n");
                    }
                }
            }
            for (int i = columnNo; i < columnLimit; i++) { Response.Write("<td> </td>\n"); }
            Response.Write("</tr>\n");
            Response.Write("</table>\n");
  • 相关阅读:
    go os/exec执行外部程序
    Go signals 信号
    选择注册协议
    全选功能
    字符限制
    JS 数字,金额 用逗号 隔开(数字格式化)
    placeholder 不支持IE修复
    JS设置弹出小窗口。
    IE 文档模式
    js报错:email() is not a function
  • 原文地址:https://www.cnblogs.com/xsmhero/p/1910987.html
Copyright © 2011-2022 走看看