我有以下结构:
<form id="the_form" method='post' enctype="multipart/form-data">
<table id="1">blabla</table>
<table id="2">blabla
<input type='submit' name='submit' />
</table>
</form>
<table id="3'>
<form>here are a couple of subforms</form>
</table>
视觉上我想实现这个结构:
<form id="the_form" method='post' enctype="multipart/form-data">
<table id="1">blabla</table>
<table id="2">blabla
</table>
</form>
<table id="3>
<form>here are a couple of subforms</form>
<input type='submit' name='submit' />
</table>
我无法更改表单的结构方式。我试图将输入放在 noscript 中,然后创建一个提交表单的链接,但我认为这不起作用,因为表单是一个多部分/表单数据。那么我该如何解决呢?有谁知道将表 2 放在 3 下的 css 方法(表 3 的高度不固定,用 javascript 解决这个问题似乎很麻烦,所以我希望有人有更好的解决方案)?或者有没有 javascript/jquery 方法来做到这一点?还是我想太多了,有没有简单的解决方案?
干杯,阿德南