如下:
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
<table> <tr> @for (int i = 0; i < urs.Count(); i++) { int cells = 8; if (i % cells == cells -1) { @Html.Raw("<td>"); //Here write html @Html.Raw("</td></tr><tr>"); } else { @Html.Raw("<td>"); //Here write html @Html.Raw("</td>"); } } </tr> </table>