forked from easysIT/doit_HTML-CSS-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton-3.html
More file actions
116 lines (116 loc) · 3.13 KB
/
button-3.html
File metadata and controls
116 lines (116 loc) · 3.13 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>레드향 주문하기</title>
<style>
fieldset {
margin-bottom:20px;
}
fieldset legend {
font-weight:bold;
}
ul {
list-style:none;
padding-left:0;
}
li {
margin:10px;
}
#product input[type="number"] {
width:30px;
margin-left:10px;
}
#shipping li label {
width:80px;
float:left;
text-align:left;
}
input[type="text"], input[type="tel"], input[type="email"] {
width:300px;
}
/* '주문하기', '취소하기' 버튼 */
div {
width:400px;
margin:15px auto;
}
div button {
text-align:center;
width:150px;
height:40px;
border:1px solid #ccc;
font-size:20px;
}
div button:first-of-type {
background-color:rgb(25, 105, 255);
color:white;
margin-right:30px;
}
</style>
</head>
<body>
<h1>레드향 주문하기</h1>
<form>
<fieldset>
<legend>상품 선택</legend>
<p><b>주문할 상품을 선택해 주세요.</b></p>
<ul id="product">
<li>
<label><input type="checkbox" value="s_3">선물용 3kg</label>
<input type="number" min="0" max="5">개 <small>(최대 5개)</small>
</li>
<li>
<label><input type="checkbox" value="s_5">선물용 5kg</label>
<input type="number" min="0" max="3" value="1">개 <small>(최대 3개)</small>
</li>
<li>
<label><input type="checkbox" value="f_3">가정용 3kg</label>
<input type="number" min="0" max="5">개 <small>(최대 5개)</small>
</li>
<li>
<label><input type="checkbox" value="f_3">가정용 5kg</label>
<input type="number" min="0" max="3">개 <small>(최대 3개)</small>
</li>
</ul>
<p><b>포장 선택</b></p>
<ul>
<li><label><input type="radio" value="yes">선물 포장</label></li>
<li><label><input type="radio" value="no">선물 포장 안 함</label></li>
</ul>
</fieldset>
<fieldset>
<legend>배송 정보</legend>
<ul id="shipping">
<li>
<label for="user-name">이름 </label>
<input type="text" id="user-name">
</li>
<li>
<label for="addr">배송 주소</label>
<input type="text" id="addr">
</li>
<li>
<label for="mail">이메일</label>
<input type="email" id="mail">
</li>
<li>
<label for="phone">연락처</label>
<input type="tel" id="phone">
</li>
<li>
<label for="d-day">배송 지정</label>
<input type="date" id="d-day"> <small>(주문일로부터 최소 3일 이후)</small>
</li>
<li>
<label for="memo">메모</label>
<textarea id="memo" cols="40" rows="4"></textarea>
</li>
</ul>
</fieldset>
<div>
<button type="submit">주문하기</button>
<button type="reset">취소하기</button>
</div>
</form>
</body>
</html>