问题描述:

I was in situation where i need to use forms in a table row, but surprisingly I could see that form element can not be child of table,td,tr. Is there any logical reason for this restriction, or is there any work around for this ?

网友答案:

It could be in a td, but a table should only contain tr (or thead, tbody, tfoot). tr should only contain td. So it's not the form element that cannot be in the table, it is the table that doesn't allow most elements, except some specific ones.

相关阅读:
Top