本篇內容介紹了“JavaScript怎么實現注冊登錄頁面”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Practice</title>
</head>
<style>
#register,#login{
width: 300px;
height: 400px;
border: 1px solid grey;
background-color: dimgrey;
/*margin: auto;*/
float: left;
}
.long{
width: 280px;
height: 30px;
/*邊框圓角*/
border-radius: 5px;
/*隱藏邊框線*/
border: none;
margin: 10px;
}
.short{
width: 180px;
height: 30px;
border-radius: 5px;
border: none;
margin: 10px;
}
.bton{
width: 90px;
height: 30px;
border-radius: 5px;
border: none;
color: darkmagenta;
background-color: white;
}
.sub{
width: 280px;
height: 30px;
margin: 10px;
background-color: deepskyblue;
border-radius: 5px;
border: none;
color: white;
}
.left_top_font{
border-bottom: 2px fuchsia solid;
padding-bottom: 7px;
font-size: 18px;
}
.right_top_font{
float: right;
font-size: 18px;
color: deepskyblue;
}
a{
text-decoration: none;
}
</style>
<body>
<!--注冊-->
<form action="#" method="post">
<div id="register">
<span class="left_top_font">請注冊</span>
<a href="#" class="right_top_font">立即登錄></a>
<hr>
<input type="text" placeholder="請輸入手機號" class="long">
<input type="text" placeholder="請輸入短信驗證碼" class="short">
<input type="button" value="發送驗證碼" class="bton">
<input type="text" placeholder="請輸入用戶名" class="long">
<input type="password" placeholder="請輸入密碼" class="long">
<input type="password" placeholder="請再次輸入密碼" class="long">
<input type="text" placeholder="請輸入圖形驗證碼" class="short">
<input type="button" value="圖形驗證碼" class="bton">
<input type="submit" value="立即注冊" class="sub">
</div>
</form>
<!--登錄-->
<form action="#" method="post">
<div id="login" style="height: 220px;">
<span class="left_top_font">請登錄</span>
<a href="#" class="right_top_font">立即注冊></a>
<hr>
<input type="text" placeholder="請輸入手機號" class="long">
<input type="password" placeholder="請輸入密碼" class="long">
<label style="color: aqua;"><input type="checkbox" >七天內自動登錄</label>
<a href="#" style="color: ivory;float: right">忘記密碼?</a>
<input type="submit" value="登錄" class="sub">
</div>
</form>
</body>
</html>“JavaScript怎么實現注冊登錄頁面”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。