下图为效果图

演示站:仿Facebook

image-20211227192402711

下面是源码部分

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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html>
<head>
<title>Facebook — log in or sign up</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.no {
background-color: #F7F8E0;
display: flex;
align-items: center;
height: 45px;
color: #3b5998;
padding-left: 45px;
font-size: 15px;
}
.dv {
font-size: 11px;
color: #1778F2;
padding: 20px;
padding-bottom: 8px;
text-align: center;
}
.email,
.pass {
height: 45px;
width: 420px;
display: grid;
border: 0px solid gray;
place-items: center;
border: none;
margin: 6px;
border-radius: 4px;
background-color: #f7f7f7;
box-sizing: border-box;
outline: none;
padding-left: 13px;
box-shadow: inset 0px 0px 1px black;
}
.email:hover {
border: 0.5px solid black;
}
.pass:hover {
border: 0.5px solid black;
}
.new {
display: grid;
place-items: center;
}
.button {
height: 45px;
width: 420px;
display: grid;
place-items: center;
margin: 10px;
margin-left: 6px;
box-sizing: border-box;
border-radius: 4px;
border: none;
background-color: #1778F2;
color: white;
font-weight: bold;
color: white;
font-size: 15px;
}
.button:hover {
background-color: #58ACFA;
}
.for {
margin: 4px;
text-align: center;
color: #1778F2;
font-size: 14px;
display: flex;
justify-content: center;
text-decoration: none;
}
.creat button {
height: 40px;
width: 180px;
background-color: #04B404;
border: none;
color: white;
font-size: 16px;
border-radius: 5px;
text-shadow: inset 0px 8px 8px black;
display: grid;
place-items: center;
}
.creat button:hover {
background-color: #A9F5A9;
text-shadow: inset 0px 0 10px black;
}
.creat {
display: flex;
margin-top: 60px;
justify-content: center;
}
</style>
</head>
<body>
<div class="dv">
<h1>facebook</h1>
</div>
<div class="new">
<form>
<input class="email" type="text" id="username" name="username" placeholder="Mobile number or email address">
<input class="pass" type="password" id="pwd" name="pwd" placeholder="password">
<input class="button" type="submit" value="Log In">
</form>
</div>
<a href="https://www.chenxz21.cf" class="for">Forgotten password?</a>
<div class="creat">
<button onclick="window.location.href='https://www.chenxz21.cf'">Creat New Account</button>
</div>
</body>
</html>