我是新來的網站。CSS/HTML表單對齊文本框
我在CSS和HTML中遇到了問題,要點擊同一行中的文本框。這意味着目前它們並不一致。你能幫忙解釋一下嗎?
<!DOCTYPE html>
<html>
<style>
.input1:focus {
background-color: yellow;
}
.input1:hover {
background-color: cyan;
}
</style>
<body>
<form>
First name: <input class="input1" type="text" name="firstname"><br>
Last name: <input class="input1" type="text" name="lastname"><br>
E-mail Address: <input class="input1" name = "email" placeholder = "[email protected]">
<p>
<input type = "submit" value = "Submit Form">
<input type = "reset" value = "Reset button">
</p>
</form>
</body>
</html>
[在CSS對齊形式的元件(的可能的複製http://stackoverflow.com/questions/13204002/align-form-elements-在-CSS) – languitar