使用CSS的HTML表单布局
问题描述:
我需要构建一个表单进行数据输入,让我们说FirstName和LastName。我知道如何做一个表。在第一个< td>
中我会放置一个标签标签,第二个是使用一个输入标签 type =
属性。
I need to build a form for data input, let's say FirstName and LastName. I know how to do this with a table. In the first <td>
I'd put a label tag and in the second I'd use an input tag with a type="text"
attribute. This way the labels and textboxes would be lined up in two columns.
有没有办法用CSS做这个?
Is there a way to do this with CSS?