html
<title>登录注册界面</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2 {
text-align: center;
}
label {
display: block;
margin-bottom: 10px;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
<div class="container">
<h2>登录</h2>
<form action="/login" method="post"> <!-- 登录表单 -->
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required><br><br>
<input type="submit" value="登录"> <!-- 登录按钮 -->
</form> <!-- 结束登录表单 -->
<h2>注册</h2> <!-- 注册表单 -->
<form action="/register" method="post"> <!-- 注册表单 -->
<!-- 注册表单内容 --> <!-- 添加注册表单的输入字段和按钮 --> <!-- 注册按钮 --> <input type="submit" value="注册"> <!-- 结束注册表单 --> </form> <!-- 结束注册表单 --> </div> <!-- 结束容器 --> </body> <!-- 结束HTML文档 --> </html> ``` 这个示例提供了一个简单的登录和注册界面,包括用户名和密码输入框以及登录和注册按钮,你可以根据需要自定义样式和内容,这只是一个基本的示例,实际的登录注册界面可能需要更多的功能和安全性措施。










