-
Notifications
You must be signed in to change notification settings - Fork 5
/
覃家谈-20281324.html
84 lines (72 loc) · 2.03 KB
/
覃家谈-20281324.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
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>美团登陆界面</title>
<style>
.container {
display: flex;
align-items: center;
justify-content: center;
margin-top: 10px;
margin-left: 100px;
}
.img_container {
flex: 1;
}
.img_container img {
width: 100%;
height: auto;
}
.login_container {
flex: 1;
margin-left: 20px;
padding: 5px;
border: 10px;
}
.login_container input[type="text"],
.login_container input[type="password"] {
padding: 5px;
margin-bottom: 10px;
width: 60%;
}
.meituan {
margin: 5px 10px 1px 100px;
}
.meituan img {
width: 9%;
}
</style>
</head>
<body>
<div>
<b style="color: darkgray; font-size: 10px;">my login_meituan</b>
</div>
<div class="meituan">
<img src="../static/img/meituan.png" />
</div>
<div class="container">
<div class="img_container">
<img src="../static/img/meituan_background.png" />
</div>
<div class="login_container">
<h3>登录</h3>
<input type="text" id="username" placeholder="用户名"><br>
<input type="password" id="password" placeholder="密码"><br>
<button onclick="login()">登录</button>
</div>
</div>
<script>
function login(){
var username=document.getElementById("username").value;
var password=document.getElementById("password").value;
if(username == "zhangsan" && password == "123"){
alert("你已成功登录!欢迎:" + username);
}else{
alert("请填写正确用户名和密码!")
}
}
</script>
</body>
</html>