使用CSS的HTML表单布局 [英] HTML form layout with CSS

查看:116
本文介绍了使用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?

推荐答案

这里是一个教程

这篇关于使用CSS的HTML表单布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆