首页 > 解决方案 > 补充 html 表中的池

问题描述

我有表格要在 html 中做,

<thead>
...
</thead>
<tbody>

// tbody has 30 rows for 15 columns.
</tbody>

在几列中,我必须插入该字段

<input type = "time" name = "1st-row/1st-column">
<input type = "time" name = "2nd-row/1st-column">
<input type = "time" name = "3rd-row/1st-column">
<input type = "time" name = "30th-row/1st-column">

我是否必须通过 html 直接在其中插入字段,是否可以更快更清晰地插入字段?如果这是怎么办呢?

标签: javascriptc#htmlcssasp.net-mvc

解决方案


 <table>
        <thead>

        </thead>
        <tbody>
            @for(int i=0;i<30;i++) 
                {
                  <tr>
                    @for(int y=0;y<15;y++)
                    {
                     <td>columns...</td>
                    }
                 </tr>
               }
        </tbody>
    </table>

推荐阅读