怎么將密碼和后面空白框在一行?
???????????????????????????????? <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<body>
<form method="post" action="save.php">
???? <tr> <label for="username">用戶(hù)名:</label>
????? <input type="text"? name="username" id="username" value="" /></tr>
???? <tr><label for="pass">密碼:</label>
????? <input type="password"? name="pass" id="pass" value="" />? ?
????? <input type="submit" value="確定"? name="submit" />
????? <input type="reset" value="重置" name="reset" />
</form> ?
</body>
</html>
2016-05-11
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<body>
<form method="post" action="save.php">
<label for="username">用戶(hù)名:</label>
<input type="text"? name="username" id="username" value="" /><br/>
<label for="pass">密 碼:</label>
<input type="password"? name="pass" id="pass" value="" />? ?
<input type="submit" value="確定"? name="submit" />
<input type="reset" value="重置" name="reset" />
</form> ?
</body>
</html>
這樣比較好看吧 ,,哪有密碼和賬號(hào)輸入在一行的。 <tr>并沒(méi)有用吧。密碼之間的空格是全角空格。
2016-05-11
可以用<br />強(qiáng)制換行;
也可以用<table>,將密碼及其空白框放一個(gè)<tr></tr>里面,但密碼和空白框需放各自<td>里,不能漏。
不明白你的代碼里面的<tr>是干啥用的,在這段代碼里沒(méi)看出什么意義的!
2016-05-11
在密碼用<br />換行
2016-05-11
?<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<body>
<form method="post" action="save.php">
? ? ?<tr> <label for="username">用戶(hù)名:</label>
? ? ? <input type="text" ?name="username" id="username" value="" /></tr><br>
? ? ?<tr><label for="pass">密碼:</label>
? ? ? <input type="password" ?name="pass" id="pass" value="" /> ??
? ? ? <input type="submit" value="確定" ?name="submit" />
? ? ? <input type="reset" value="重置" name="reset" />
</form> ?
</body>
</html>
加<br>
2016-05-11
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<body>
<form method="post" action="save.php">
? ? ?<label for="username">用戶(hù)名:
? ? ?<input type="text" ?name="username" id="username" value="" /></br></br>
? ? ?<label for="pass">密  碼:</label>
? ? ?<input type="password" ?name="pass" id="pass" value="" /> ??
? ? ? <input type="submit" value="確定" ?name="submit" />
? ? ? <input type="reset" value="重置" name="reset" />
</form> ?
</body>
</html>
2016-05-11
本來(lái)就是一行 你全屏看就知道了
2016-05-11
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<body>
<form method="post" action="save.php">
???? <tr> <label for="username">用戶(hù)名:</label>
????? <input type="text"? name="username" id="username" value="" /></tr>
???? <tr><label for="pass">密碼:</label>
????? <input type="password"? name="pass" id="pass" value="" /> ?<br>?
????? <input type="submit" value="確定"? name="submit" />
????? <input type="reset" value="重置" name="reset" />
</form> ?
</body>
</html>
2016-05-11
這個(gè)要用css設(shè)置寬度了。我想如果你是在練習(xí),那你調(diào)整一下瀏覽器的寬度,是不是窗口寬度不夠才換行了。