-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (105 loc) · 2.82 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css" integrity="sha256-ECB9bbROLGm8wOoEbHcHRxlHgzGqYpDtNTgDTyDz0wg=" crossorigin="anonymous" />
<title>每日體重</title>
</head>
<body>
<div class="container">
<div id="input">
<div class="form-row">
<nav class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar">
<form id="form">
<label class="sr-only" for="date">日期</label>
<input type="Date" id="date">
<label class="sr-only" for="height">身高(cm)</label>
<input type="text" id="height">
<label class="sr-only" for="weight">體重(kg)</label>
<input type="text" id="weight">
<button id="submit">送出</button>
</form>
</nav>
</div>
</div>
<table id="table">
<thead>
<tr>
<td>日期</td>
<td>身高(cm)</td>
<td>體重(kg)</td>
<td>與前一天相比</td>
<td>兵役體位</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<script src="appes6.js"></script>
<style>
.container {
position: relative;
}
#table{
border-collapse: collapse;
border: 1px solid black;
position: relative;
left: 0;
top: 80%;
width: 100%;
background-image:linear-gradient(
to right bottom,
#e9e6e7,
#77777227);
}
th, td {
border: 1px solid black;
text-align: center;
}
#input {
position: relative;
top: 0%;
background-image:linear-gradient(
to right bottom,
#d63083,
#cece4827);
}
#submit {
background-image: linear-gradient(
to top,
rgb(148, 197, 56),
rgb(118, 165, 235)
);
}
.success, .error {
text-align: center;
}
.success {
background: yellow;
}
.error {
background: red;
}
label {
width: 70px;
display: inline-block;
text-align: center;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
color: #8a54f0;
}
body {
background-image: url(img/soldier.jpg), url(img/soldier2.jpg), url(img/weight.jpg), url(img/weight2.jpg);
background-size: 25% 50%, 25% 50%, 25% 50%, 25% 50%;
background-position: left top, right top, left bottom, right bottom ;
background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}
</style>
</body>
</html>