login.html
3.22 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1" />
<style type="text/css">
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/*모든 element에 적용되는 것 */
@font-face {
font-family: NanumSquareWeb;
src: local(NanumSquareR),
local(NanumSquare),
url(NanumSquareR.eot?#iefix) format('embedded-opentype'),
url(NanumSquareR.woff) format('woff'),
url(NanumSquareR.ttf) format('truetype');
font-style: normal;
font-weight: normal;
unicode-range: U+0-10FFFF;
}
h1 {
font-family: NanumSquareWeb, sans-serif;
}
body {
font-family: "맑은 고딕";
font-size: 0.75em;
color: #333;
}
#login-form {
width: 250px;
height: 250px;
margin: 100px auto;
border: 10px solid skyblue;
border-radius: 5px;
padding: 15px;
}
#login-form label {
display: block;
}
#login-form label {
margin-top: 10px;
}
#login-form input {
margin-top: 5px;
}
/* 애트리뷰트 선택자 */
#login-form input[type='image'] {
margin: 0px auto;
background-size: cover;
width: 90px;
height: 40px;
}
#login-form input[id='Lbutton'] {
background-color: orange;
border: none;
color: white;
font-family: NanumSquareWeb;
font-size: large;
font-weight: bold;
text-align: center;
border-radius: 20px;
width: 100%;
height: 40px;
float: left;
}
#login-form input[id='Jbutton'] {
background-color: red;
font-size: large;
font-weight: bold;
text-align: center;
font-family: NanumSquareWeb;
border-radius: 20px;
border: none;
color: white;
width: 100%;
height: 40px;
float: left;
}
@media(min-width: 577px ){
#login-form {
height: 200px;
}
#login-form input[id='Jbutton'] {
width: 50%;
}
#login-form input[id='Lbutton'] {
width: 50%;
}
}
</style>
</head>
<body>
<form id="login-form" action="#" method="POST">
<label class="Legend" for="id">아이디</label>
<input id="id" type="text" maxlength="20" name="userid" />
<label class="Legend" for="password">패스워드</label>
<input id="password" type="password" maxlength="20" name="userpassword" />
</br></br>
<div class="btn">
<input id="Lbutton" type="button" name="login" value="Login">
<input id="Jbutton" type="button" name="join" onclick="location.href='join.html'" value="Join">
</div>
</form>
</body>
</html>