HTML: table of forms?

后端 未结 2 685
面向向阳花
面向向阳花 2020-12-17 02:10

I frequently find myself wanting to make a table of forms -- a bunch of rows, each row being a separate form with its own fields and submit button. For instance, here\'s an

2条回答
  •  -上瘾入骨i
    2020-12-17 02:40

    You can use css to give table layout to other elements.

    .table { display: table; } 
    .table>* { display: table-row; }
    .table>*>* { display: table-cell; }
    

    Then you use the following valid html.

    snake

提交回复
热议问题