构造html之table

?在代码中构造table时,tr,td,span混在一起,杂乱无章,可分开,table,tr,td单独,这样对的时候比较容易如:

?//td:订单金额
??????????????? sb.Append(“<td style=\”width:40px;\”>”);
??????????????? sb.Append(dr[“amount”].ToString());
??????????????? sb.Append(“</td>”);
–空一行
??????????????? //td:状态名称
??????????????? sb.Append(“<td style=\”width:8%;\”>”);
??????????????? sb.Append(dr[“StatusName”].ToString());
??????????????? sb.Append(“</td>”);