请帮我用html编写一个忘记密码的界面的代码
时间: 2023-03-31 11:02:34 浏览: 106
好的,以下是忘记密码界面的 HTML 代码:
```
<!DOCTYPE html>
<html>
<head>
<title>忘记密码</title>
</head>
<body>
<h1>忘记密码</h1>
<form>
<label for="email">邮箱:</label>
<input type="email" id="email" name="email" required><br><br>
<input type="submit" value="提交">
</form>
</body>
</html>
```
希望这个代码对你有帮助!
相关问题
请帮我用html编写一个高级的忘记密码的界面的代码
好的,以下是一个简单的忘记密码界面的 HTML 代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>忘记密码</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
form {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 10px rgba(,,,.2);
max-width: 500px;
margin: auto;
}
input[type="email"], input[type="password"] {
display: block;
width: 100%;
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: none;
box-shadow: 5px rgba(,,,.1);
font-size: 16px;
}
input[type="submit"] {
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<form>
<h2>忘记密码</h2>
<p>请输入您的电子邮件地址,我们会将重置密码的链接发送到您的邮箱。</p>
<label for="email">电子邮件地址:</label>
<input type="email" id="email" name="email" required>
<input type="submit" value="发送重置链接">
</form>
</body>
</html>
```
希望这个代码能够帮到你!
请你用代码编写仿造知乎的登录界面
抱歉,我无法编写代码,但我可以向您提供知乎登录界面的 HTML 和 CSS 代码示例。请参考以下代码:
HTML 代码:
```
<!DOCTYPE html>
<html>
<head>
<title>知乎登录</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="login-box">
<h1>知乎登录</h1>
<form>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名">
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码">
<label class="checkbox-container">
<input type="checkbox" checked="checked">
<span class="checkmark"></span>
记住我
</label>
<button type="submit">登录</button>
<div class="other-options">
<a href="">手机验证码登录</a> |
<a href="">忘记密码</a>
</div>
</form>
</div>
</body>
</html>
```
CSS 代码:
```
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #f2f2f2;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.login-box {
background-color: #fff;
border-radius: 8px;
box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
margin: 100px auto;
max-width: 500px;
padding: 30px;
}
h1 {
color: #333;
font-size: 28px;
margin-bottom: 30px;
text-align: center;
}
form {
display: flex;
flex-direction: column;
}
label {
color: #666;
display: block;
font-size: 16px;
margin-bottom: 6px;
}
input[type="text"],
input[type="password"] {
border: none;
border-radius: 4px;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
font-size: 16px;
margin-bottom: 20px;
padding: 10px;
}
input[type="text"]:focus,
input[type="password"]:focus {
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
outline: none;
}
.checkbox-container {
display: inline-block;
position: relative;
padding-left: 30px;
margin-bottom: 20px;
cursor: pointer;
font-size: 16px;
user-select: none;
}
.checkbox-container input {
position: absolute;
opacity: 0;
cursor: pointer;
}
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 20px;
width: 20px;
background-color: #eee;
}
.checkbox-container:hover input ~ .checkmark {
background-color: #ccc;
}
.checkbox-container input:checked ~ .checkmark {
background-color: #2196F3;
}
.checkmark:after {
content: "";
position: absolute;
display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
display: block;
}
.checkbox-container .checkmark:after {
left: 7px;
top: 3px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
transform: rotate(45deg);
}
button[type="submit"] {
background-color: #0084ff;
border: none;
border-radius: 4px;
color: #fff;
cursor: pointer;
font-size: 16px;
margin-top: 20px;
padding: 10px;
transition: background-color 0.2s ease;
}
button[type="submit"]:hover {
background-color: #0071e6;
}
.other-options {
color: #999;
font-size: 14px;
margin-top: 20px;
text-align: center;
}
.other-options a {
color: #999;
text-decoration: none;
}
.other-options a:hover {
color: #666;
}
```