所以我有一个问题,“提交”框确实显示在“密码输入”下方。所以我想知道您是否可以帮助我。感谢您的回答。我不是专业的程序员,因此请记住这一点。



<!DOCTYPE html>
<html>
<head>
<title>HelloWorld</title>
<script type="text/javascript"
src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-
1.8.1.min.js">
</script>
<style type="text/css">

.form-field{
	clear:both;
	padding: 10px;
	width: 400px;

}
.form-field label {
	float: left;
	width: 150px;
	text-align: right;
}
.form-field input{
	float: right;
	width: 150px;
	text-align: left;

}
#submit{
	text-align: center;
}

</style>
</head>
<body>
<form class="form-field">
	<fieldset>
		<legend>Log In: </legend>
		<div>
			<label for="username">Username:</label>
			<input type="text" name="username" id="Uname">
		</div>
		<div>
			<label for="password">Password:</label>
			<input type="password" name="password" id="password">
		</div>
			<input type="submit" id="Submit" value="Submit">
	</fieldset>
</form>
</body>
</html>

最佳答案

Okey非常简单

<label>&nbsp;</label>
<input type="submit" id="Submit" value="Submit">


为提交按钮制作一个空标签

10-05 20:44
查看更多