是否可以使用表格来制作web表单,或者我应该使用div?我知道如何使用表格,但我应该如何用div制作表单,还是使用表格更好?
<form method="post">
<table>
<tr>
<td>
<label for="username">Username:</label>
</td>
<td>
<input type="text" name="username" id="username"/>
</td>
</tr>
<tr>
<td>
<label for="password">Password:</label>
</td>
<td>
<input type="password" name="password" id="password"/>
</td>
</tr>
<tr>
<td>
<input type="submit" name="cancel" value="Cancel"/>
</td>
<td>
<input type="submit" name="send" value="Send"/>
</td>
</tr>
</table>
</form>发布于 2010-01-30 03:59:03
表格不是用来布局的,表格是用来做数据周期的,css是最好的做法。
https://stackoverflow.com/questions/2164686
复制相似问题