HTML简单的注册登录页面

body

<div class="content">
			<div class="form sign-in">
				<h2>欢迎回来</h2>
				<label>
					<span>邮箱</span>
					<input type="email" />
				</label>
				<label>
					<span>密码</span>
					<input type="password" />
				</label>
				<p class="forgot-pass"><a href="javascript:">忘记密码?</a></p>
				<button type="button" class="submit">登 录</button>
			</div>
			<div class="sub-cont">
				<div class="img">
					<div class="img__text m--up">
						<h2>还未注册?</h2>
						<p>立即注册,发现大量机会!</p>
					</div>
					<div class="img__text m--in">
						<h2>已有帐号?</h2>
						<p>有帐号就登录吧,好久不见了!</p>
					</div>
					<div class="img__btn">
						<span class="m--up">注 册</span>
						<span class="m--in">登 录</span>
					</div>
				</div
  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
HTML简单登录注册界面源代码如下: ```html <!DOCTYPE html> <html> <head> <title>登录/注册界面</title> <style> body { font-family: Arial, sans-serif; } .container { width: 300px; margin: 0 auto; padding: 20px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 5px; } .form-group input[type="text"], .form-group input[type="password"] { width: 100%; padding: 5px; } .form-group .btn { display: block; width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; cursor: pointer; } </style> </head> <body> <div class="container"> <h2>登录</h2> <form action="login.php" method="POST"> <div class="form-group"> <label for="username">用户名:</label> <input type="text" id="username" name="username" required> </div> <div class="form-group"> <label for="password">密码:</label> <input type="password" id="password" name="password" required> </div> <button type="submit" class="btn">登录</button> </form> <hr> <h2>注册</h2> <form action="register.php" method="POST"> <div class="form-group"> <label for="new-username">用户名:</label> <input type="text" id="new-username" name="new-username" required> </div> <div class="form-group"> <label for="new-password">密码:</label> <input type="password" id="new-password" name="new-password" required> </div> <button type="submit" class="btn">注册</button> </form> </div> </body> </html> ``` 这段代码展示了一个简单登录/注册界面。其中包含两个表单,分别用于登录注册功能。用户可以输入用户名和密码进行登录,也可以注册新的用户名和密码。登录注册表单均使用POST方法提交到相应的处理程序(`login.php`和`register.php`)。使用CSS样式对界面进行简单的美化,包括边距、边框、背景等。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值