-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path祖力皮卡尔_20281101.html
73 lines (66 loc) · 1.59 KB
/
祖力皮卡尔_20281101.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
<!DOCTYPE html>
<html>
<head>
<title>登录页面</title>
<style>
body {
font-family: Arial, sans-serif;
}
.container {
width: 300px;
margin: 0 auto;
padding: 20px;
background-color:white;
border: 1px solid blue;
}
.form-group {
margin-bottom: 10px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group input {
width: 100%;
padding: 5px;
}
.form-group button {
width: 100%;
padding: 10px;
background-color:red;
color:black;
border: none;
cursor: pointer;
}
</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>
<div class="form-group">
<button onclick="login()">登录</button>
</div>
</div>
<script>
function login() {
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
// 验证用户名和密码是否符合要求
if (username === "admin" && password === "password") {
alert("登录成功");
} else {
alert("用户名或密码错误");
}
}
</script>
</body>
</html>