-
Notifications
You must be signed in to change notification settings - Fork 5
/
兰博_20281279.html
81 lines (73 loc) · 1.86 KB
/
兰博_20281279.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
<title>用户登录</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 5px;
font-size: 16px;
border: 1px solid #ccc;
}
button {
font-size: 20px;
background-color: #4CAF50;
color: #fff;
border: none;
cursor: pointer;
}
.message {
text-align: center;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<h2>用户登录</h2>
<div class="form-group">
<label for="username">用户名:</label>
<input type="text" id="username" placeholder="请输入用户名">
</div>
<div class="form-group">
<label for="password">密码:</label>
<input type="password" id="password" placeholder="请输入密码">
</div>
<button onclick="login()">登录</button>
<p class="message" id="message"></p>
</div>
<script>
function login() {
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
if (username === "lanbo" && password === "20281279") {
document.getElementById("message").innerHTML = "登录成功";
} else {
document.getElementById("message").innerHTML = "登录失败";
}
}
</script>
</body>
</html>