forked from yanlele/node-index
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
72 lines (67 loc) · 2.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.demo--label {
margin: 20px 20px 0 0;
display: inline-block
}
.demo--radio {
display: none
}
.demo--radioInput {
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 100%;
display: inline-block;
height: 16px;
margin-right: 10px;
margin-top: -1px;
vertical-align: middle;
width: 16px;
line-height: 1
}
.demo--radio:checked + .demo--radioInput:after {
background-color: #57ad68;
border-radius: 100%;
content: "";
display: inline-block;
height: 12px;
margin: 2px;
width: 12px
}
.demo--checkbox.demo--radioInput, .demo--radio:checked + .demo--checkbox.demo--radioInput:after {
border-radius: 0
}
</style>
</head>
<body>
<div>
<p style="font-size:18px;margin-top:30px;color:rgba(0,0,0,0.44)">约吗?</p>
<label class="demo--label">
<input class="demo--radio" type="radio" name="demo-radio">
<span class="demo--radioInput"></span>约
</label>
<label class="demo--label">
<input class="demo--radio" type="radio" name="demo-radio">
<span class="demo--radioInput"></span>不约,叔叔我们不约
</label>
</div>
<div>
<p style="font-size:18px;margin-top:30px;color:rgba(0,0,0,0.44)">你喜欢的电影明星是?</p>
<label class="demo--label"><input class="demo--radio" type="checkbox" name="demo-checkbox1">
<span class="demo--checkbox demo--radioInput"></span>苍井空
</label>
<label class="demo--label">
<input class="demo--radio" type="checkbox" name="demo-checkbox2">
<span class="demo--checkbox demo--radioInput"></span>波多野结衣
</label>
<label class="demo--label">
<input class="demo--radio" type="checkbox" name="demo-checkbox3">
<span class="demo--checkbox demo--radioInput"></span>罗玉凤
</label>
</div>
</body>
</html>