課程
/前端開發(fā)
/HTML/CSS
/初識(shí)HTML(5)+CSS(3)-升級(jí)版
怎么使這兩個(gè)文框?qū)R?
2016-03-24
源自:初識(shí)HTML(5)+CSS(3)-升級(jí)版 6-1
正在回答
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<style>
? ? #username,#pass
? ? {
? ? ? ? display:block;
? ? }
</style> ??
<body>
<form method="post" action="save.php">
? ? ? <label for="username">用戶名:</label>
? ? ? <input type="text" ?name="username" id="username" value="" />
? ? ? <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>
Tore 提問者
可以用表格來控制布局
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">?
?<head> ?
<title></title>?
?</head>?
?<body>?
??<form action="" method="post"> ?
?<table align="center"> ??
?<tr> ??
<td>用戶名:</td> ??
<td><input type="text" name="name" value="" /></td> ??
?</tr> ? ?
<tr> ??
<td>密碼:</td> ??
<td><input type="password" name="pass"/></td> ? ?
</tr> ? ?
<td> </td> ? ?
<tr align="center"> ? ?
<td colspan="2"> ? <input type="submit" name="submit" value="登陸"/> ? ?</td> ?
</form>?
??</body>?
?</html>
??????<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=""?/>
float:left;
舉報(bào)
HTML(5)+CSS(3)基礎(chǔ)教程8小時(shí)帶領(lǐng)大家步步深入學(xué)習(xí)標(biāo)簽用法和意義
1 回答HTML+CSS基礎(chǔ)課程
3 回答HTML+CSS基礎(chǔ)課程
1 回答html+css基礎(chǔ)
4 回答關(guān)于html+css基礎(chǔ)課程
1 回答Html+css基礎(chǔ)課程10-1
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-03-24
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<style>
? ? #username,#pass
? ? {
? ? ? ? display:block;
? ? }
</style> ??
<body>
<form method="post" action="save.php">
? ? ? <label for="username">用戶名:</label>
? ? ? <input type="text" ?name="username" id="username" value="" />
? ? ? <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-03-24
可以用表格來控制布局
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">?
?<head> ?
<title></title>?
?</head>?
?<body>?
??<form action="" method="post"> ?
?<table align="center"> ??
?<tr> ??
<td>用戶名:</td> ??
<td><input type="text" name="name" value="" /></td> ??
?</tr> ? ?
<tr> ??
<td>密碼:</td> ??
<td><input type="password" name="pass"/></td> ? ?
</tr> ? ?
<tr> ??
<td> </td> ? ?
</tr> ? ?
<tr align="center"> ? ?
<td colspan="2"> ? <input type="submit" name="submit" value="登陸"/> ? ?</td> ?
</form>?
??</body>?
?</html>
2016-03-24
2016-03-24
float:left;