-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
index.html
65 lines (56 loc) · 1.09 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><input type="color"> 示例</title>
<style>
html, input {
font-family: sans-serif;
}
body {
width: 90%;
max-width: 500px;
margin: 0 auto;
}
form {
margin-top: 20px;
}
div {
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
label, input, button {
font-size: 14px;
line-height: 1.5
}
label {
text-align: right;
width: 30%;
margin-right: 2%;
}
input {
flex: auto;
}
button {
width: 70%;
margin: 0 auto;
}
</style>
</head>
<body>
<form>
<div>
<label for="color">选择一种颜色:</label>
<input type="color" id="color" name="color">
</div>
<div>
<button>提交</button>
</div>
</form>
<script>
</script>
</body>
</html>