課程
/前端開發(fā)
/HTML/CSS
/初識HTML(5)+CSS(3)-升級版
設定賬戶跟密碼怎么弄。
在這個基礎上又如何添加 ?登錄跟注冊這兩個內容。
2017-11-04
源自:初識HTML(5)+CSS(3)-升級版 6-2
正在回答
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Title</title>
<script type="text/javascript"> ?
? ? function regist() { ?
? ? ? ? window.open('Untitled-2.html');?
? ? ? ? window.location.href = 'Untitled-2.html'; ?
? ? } ?
</script> ?
</head>
<body>
<form>
? <label for="UserName">輸入您的賬號</label>
? <input type="text" id="UserName" placeholder="Enter Your Name">
? <br />
? <label for="Password">輸入您的密碼</label>
? <input type="password" id="Password" placeholder="Enter Password">
? <input type="submit" value="登陸" name="LoginBtn" />
? <input type="button" value="注冊" name="SigninBtn" onclick="regist()">
</form>
</body>
</html>
BiggestMonster
qq_郁倦夏風只送不寧_0 提問者
input或者botton標簽,登錄和注冊加超鏈接就可以了
舉報
HTML(5)+CSS(3)基礎教程8小時帶領大家步步深入學習標簽用法和意義
3 回答賬戶和密碼上的默認值怎么修改
3 回答賬戶和密碼的默認值
6 回答密碼與賬戶文本框的長度不一樣
3 回答想把賬戶和密碼一起也用框架搭起來
2 回答怎么使密碼和用戶名對齊顯示
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-11-04
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Title</title>
<script type="text/javascript"> ?
? ? function regist() { ?
? ? ? ? window.open('Untitled-2.html');?
? ? ? ? window.location.href = 'Untitled-2.html'; ?
? ? } ?
</script> ?
</head>
<body>
<form>
? <label for="UserName">輸入您的賬號</label>
? <input type="text" id="UserName" placeholder="Enter Your Name">
? <br />
? <label for="Password">輸入您的密碼</label>
? <input type="password" id="Password" placeholder="Enter Password">
? <br />
? <input type="submit" value="登陸" name="LoginBtn" />
? <input type="button" value="注冊" name="SigninBtn" onclick="regist()">
</form>
</body>
</html>
2017-11-04
input或者botton標簽,登錄和注冊加超鏈接就可以了