Html启航工坊登录页面
时间: 2024-04-29 10:18:32 浏览: 9
Html启航工坊登录页面是一个用于用户登录的网页界面,通常包含用户名和密码输入框以及登录按钮。以下是一个简单的Html启航工坊登录页面的示例代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>启航工坊登录</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
.container {
width: 300px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.container h2 {
text-align: center;
color: #333;
}
.container input[type="text"],
.container input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 3px;
}
.container input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 3px;
cursor: pointer;
}
.container input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h2>启航工坊登录</h2>
<form action="login.php" method="post">
<input type="text" name="username" placeholder="用户名" required>
<input type="password" name="password" placeholder="密码" required>
<input type="submit" value="登录">
</form>
</div>
</body>
</html>
```
以上代码创建了一个简单的登录页面,包含一个标题、用户名输入框、密码输入框和登录按钮。用户需要输入正确的用户名和密码才能成功登录。登录表单的提交地址为`login.php`,你可以根据实际情况修改为你自己的后端处理地址。