-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
129 lines (128 loc) · 5.24 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!-- saved from url=(0014)about:internet -->
<meta charset="UTF-8">
<title>Radio Example</title>
<link rel="stylesheet" href="dist/by-radio.min.css">
</head>
<body>
<form action="#" method="post">
<h2>with ID</h2>
<fieldset>
<input class="by-radio" id="radio1" name="gender" type="radio" value="male">
<label class="by-checkable" for="radio1">Male</label>
<input checked class="by-radio" id="radio2" name="gender" type="radio" value="female">
<label class="by-checkable" for="radio2">Female</label>
<input class="by-radio" disabled id="radio3" name="gender" type="radio" value="disabled">
<label class="by-checkable" for="radio3">Disabled</label>
<input checked class="by-radio" disabled id="radio4" name="gender-d" type="radio" value="disabled-checked">
<label class="by-checkable" for="radio4">Disabled-Checked</label>
<hr>
<input checked class="by-checkbox" id="checkbox1" name="favourite" type="checkbox" value="apple">
<label class="by-checkable" for="checkbox1">Apple</label>
<input class="by-checkbox" id="checkbox2" name="favourite" type="checkbox" value="orange">
<label class="by-checkable" for="checkbox2">Orange</label>
<input class="by-checkbox" id="checkbox3" name="favourite" type="checkbox" value="banana">
<label class="by-checkable" for="checkbox3">Banana</label>
<input class="by-checkbox" disabled id="checkbox4" name="favourite" type="checkbox" value="disabled">
<label class="by-checkable" for="checkbox4">Disabled</label>
<input checked class="by-checkbox" disabled id="checkbox5" name="favourite" type="checkbox" value="disabled-checked">
<label class="by-checkable" for="checkbox5">Disabled-Checked</label>
<hr>
<input class="by-switch" id="switch-1" name="favourite" type="checkbox" value="apple">
<label class="by-checkable" for="switch-1">Switch</label>
</fieldset>
<h2>No ID <small>size: middle</small></h2>
<fieldset style="font-size: 20px;">
<label>
<input class="by-radio" name="gender2" type="radio" value="male">
<span class="by-checkable">Male</span>
</label>
<label>
<input checked class="by-radio" name="gender2" type="radio" value="female">
<span class="by-checkable">Female</span>
</label>
<label>
<input class="by-radio" disabled name="gender2" type="radio" value="disabled">
<span class="by-checkable">Disabled</span>
</label>
<label>
<input checked class="by-radio" disabled name="gender2-d" type="radio" value="disabled-checked">
<span class="by-checkable">Disabled-Checked</span>
</label>
<hr>
<label>
<input checked class="by-checkbox" name="favourite" type="checkbox" value="apple">
<span class="by-checkable">Apple</span>
</label>
<label>
<input class="by-checkbox" name="favourite" type="checkbox" value="orange">
<span class="by-checkable">Orange</span>
</label>
<label>
<input class="by-checkbox" name="favourite" type="checkbox" value="banana">
<span class="by-checkable">Banana</span>
</label>
<label>
<input class="by-checkbox" disabled name="favourite" type="checkbox" value="disabled">
<span class="by-checkable">Disabled</span>
</label>
<label>
<input checked class="by-checkbox" disabled name="favourite" type="checkbox" value="disabled-checked">
<span class="by-checkable">Disabled-Checked</span>
</label>
<hr>
<label>
<input class="by-switch" name="favourite" type="checkbox" value="apple">
<span class="by-checkable">Switch</span>
</label>
</fieldset>
<h2>Size: large</h2>
<fieldset style="font-size: 2em;">
<label>
<input class="by-radio" name="lg" type="radio" value="male">
<span class="by-checkable">Male</span>
</label>
<label>
<input checked class="by-radio" name="lg" type="radio" value="female">
<span class="by-checkable">Female</span>
</label>
<label>
<input class="by-radio" disabled name="lg" type="radio" value="disabled">
<span class="by-checkable">Disabled</span>
</label>
<label>
<input checked class="by-radio" disabled name="lg-d" type="radio" value="disabled-checked">
<span class="by-checkable">Disabled-Checked</span>
</label>
<hr>
<label>
<input class="by-checkbox" name="favourite" type="checkbox" value="apple">
<span class="by-checkable">Apple</span>
</label>
<label>
<input class="by-checkbox" name="favourite" type="checkbox" value="orange">
<span class="by-checkable">Orange</span>
</label>
<label>
<input class="by-checkbox" name="favourite" type="checkbox" value="banana">
<span class="by-checkable">Banana</span>
</label>
<label>
<input class="by-checkbox" disabled name="favourite" type="checkbox" value="disabled">
<span class="by-checkable">Disabled</span>
</label>
<label>
<input checked class="by-checkbox" disabled name="favourite" type="checkbox" value="disabled-checked">
<span class="by-checkable">Disabled-Checked</span>
</label>
<hr>
<label>
<input class="by-switch" name="favourite" type="checkbox" value="apple">
<span class="by-checkable">Switch</span>
</label>
</fieldset>
</form>
</body>
</html>