Form tag won't enclose elements inside a table

前端 未结 3 913
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 10:27

I\'ve run into a curious problem; I\'ve got a form inside a , however the form refuses to wrap any tags inside it. I\'ve made a quick JSFiddle here to

3条回答
  •  旧巷少年郎
    2021-01-04 10:51

    The

    tag can only be placed inside a element or outside the in this case.

    If I were you, I'd just put the around the whole table since you said there won't be any other forms within it.

    Or, you could replace the

    completely with
    s instead that use display: table; or display: table-cell;.

    提交回复
    热议问题