【发布时间】:2014-03-29 14:19:09
【问题描述】:
我想知道<form> 中是否可以包含多个<fieldset>?还是改用<div> 更好?就我而言,我想设计一个复杂的响应式设计<form>,仅包含许多不同类型的<input>.' And if so, do theshould be in his own`?
最好这样:
<form action="#" method="POST">
<fieldset id="input1-wrapper">
<h3>Input 1</h3>
<input type="texte" name="input1" placeholder="input1">
</fieldset>
<fieldset id="input2-wrapper">
<h3>Input 2</h3>
<input type="texte" name="input2" placeholder="input2">
</fieldset>
</form>
或者像这样:
<form action="#" method="POST">
<div id="input1-wrapper">
<h3>Input 1</h3>
<input type="texte" name="input1" placeholder="input1">
</div>
<div id="input2-wrapper">
<h3>Input 2</h3>
<input type="texte" name="input2" placeholder="input2">
</div>
</form>
【问题讨论】: