-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.7.html
More file actions
96 lines (92 loc) · 2.35 KB
/
Copy path1.7.html
File metadata and controls
96 lines (92 loc) · 2.35 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
登录
</title>
<link rel="icon" href="图片/图标.jpg">
<style>
*{
padding:0px;
margin:0px;
}
body{
background-image:url(图片/注册1.jpg);
background-repeat:no-repeat;
background-image-width:100%;
background-image-height:100%;
background-attachment: fixed;
}
#one{
width:350px;
height:250px;
position:absolute;
top:12em;
left:37em;
}
p{
font-size:43px;
font-family:宋体;
font-style: oblique;
font-weight:bold;
text-indent:3em;
text-shadow:3px -3px 1px gray;
}
input[type=text]{
width: 100%;
padding: 10px 20px;
margin-left:0em;
margin-right: 2em;
box-sizing: border-box;
border: none;
border-bottom: 2px solid black;
background:none;
}
input[type=password]{
width: 100%;
padding: 10px 20px;
margin-left:0em;
margin-right: 2em;
box-sizing: border-box;
border: none;
border-bottom: 2px solid black;
background:none;
}
input[type=submit]{
background:none;
border: none;
}
label{
font-family:微软雅黑;
}
</style>
</head>
<body>
<div id="one">
<p>Login</p><br><br>
<from name="myForm" action="demo_form.php"
onsubmit="return validateForm()" method="post">
<label for="fname">用户名:</label><br>
<input type="text" id="x" name="fname"><br><br>
<label for="lname">密码:</label><br>
<input type="password" id="y" name="lname"><br><br>
<input id="de" type="submit" onclick="myFunction()" value="提交"/>
<a href="1.8.html"><input type="submit" id="zhu" value="注册"/></a>
</from>
</div>
<script>
function myFunction()
{
var x=document.getElementById("x");
var y=document.getElementById("y");
if(x.value =="" || y.value ==""){
alert("名字密码不能为空。");
}
else
alert("登录成功");
}
</script>
</body>
</html>