亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

怎么將密碼和后面空白框在一行?

???????????????????????????????? <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標簽</title>
</head>
<body>
<form method="post" action="save.php">
???? <tr> <label for="username">用戶名:</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>

正在回答

8 回答

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標簽</title>
</head>
<body>
<form method="post" action="save.php">
<label for="username">用戶名:</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>

這樣比較好看吧 ,,哪有密碼和賬號輸入在一行的。 <tr>并沒有用吧。密碼之間的空格是全角空格。

0 回復 有任何疑惑可以回復我~
#1

偉大的陳老師丨

你這個本來就在一行啊。打開就可以看見了
2016-05-11 回復 有任何疑惑可以回復我~

可以用<br />強制換行;

也可以用<table>,將密碼及其空白框放一個<tr></tr>里面,但密碼和空白框需放各自<td>里,不能漏。

不明白你的代碼里面的<tr>是干啥用的,在這段代碼里沒看出什么意義的!

0 回復 有任何疑惑可以回復我~

在密碼用<br />換行

0 回復 有任何疑惑可以回復我~

?<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>表單標簽</title>

</head>

<body>

<form method="post" action="save.php">

? ? ?<tr> <label for="username">用戶名:</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>

0 回復 有任何疑惑可以回復我~

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>表單標簽</title>

</head>

<body>

<form method="post" action="save.php">

? ? ?<label for="username">用戶名:

? ? ?<input type="text" ?name="username" id="username" value="" /></br></br>

? ? ?<label for="pass">密&nbsp&nbsp碼:</label>

? ? ?<input type="password" ?name="pass" id="pass" value="" /> ??

? ? ? <input type="submit" value="確定" ?name="submit" />

? ? ? <input type="reset" value="重置" name="reset" />

</form> ?

</body>

</html>


0 回復 有任何疑惑可以回復我~

本來就是一行 你全屏看就知道了

0 回復 有任何疑惑可以回復我~

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標簽</title>
</head>
<body>
<form method="post" action="save.php">
???? <tr> <label for="username">用戶名:</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>

0 回復 有任何疑惑可以回復我~

這個要用css設置寬度了。我想如果你是在練習,那你調整一下瀏覽器的寬度,是不是窗口寬度不夠才換行了。

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

怎么將密碼和后面空白框在一行?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號