您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
本篇内容介绍了“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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。