【发布时间】:2015-11-23 18:12:53
【问题描述】:
我想水平对齐两个输入,每个标签都在顶部。例如:
<form class="contact_form" action="" method="post" name="contact_form">
<label for="name">Name</label>
<input type="text" name="name" required>
<label for="email">Email</label>
<input type="email" name="email" required>
<label for="message">Message</label>
<textarea name="message" id="" cols="30" rows="10"></textarea>
<button class="submit" type="submit">Send</button>
</form>
我想得到:
Name Email
name's input email's input
我已经尝试了一段时间,但我不知道如何实现。 非常感谢!
【问题讨论】:
-
你有 CSS 样式吗?如果是这样,请将其添加到您的问题中。
标签: css html forms contact-form