-
Notifications
You must be signed in to change notification settings - Fork 3
/
switch.html
64 lines (63 loc) · 2.57 KB
/
switch.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<title>Hello APP</title>
<link rel="stylesheet" type="text/css" href="./css/ptm.css" />
<style type="text/css">
.ptm-content {
background: #ffffff;
overflow: hidden;
padding: 15px;
}
p {
margin: 10px 0;
overflow: hidden;
}
</style>
</head>
<body>
<header id="ptm-header" class="ptm-bg-primary">
<div class="ptm-bar ptm-bar-nav ptm-bar-primary">
<a class="ptm-pull-left" href="index.html">
<span class="ptm-iconfont ptm-icon-left ptm-text-bold"></span>返回
</a>
<div class="ptm-title">进度条</div>
</div>
</header>
<p class="ptm-padded-10">css3模拟switch动画效果,默认设置了几个颜色供大家选择,行高为26px;$('[name=aaa]:checked').val()</p>
<div class="ptm-content ptm-card">
<ul class="ptm-list-view">
<li class="ptm-list-view-cell ptm-switch-body">
<div class="ptm-switch-title">声音提醒</div>
<input type="checkbox" class="ptm-switch ptm-pull-right" name="aaa" value="1">
</li>
<li class="ptm-list-view-cell ptm-switch-body">
<div class="ptm-switch-title">关闭状态</div>
<input type="checkbox" class="ptm-switch ptm-pull-right" name="bbb" value="1">
</li>
<li class="ptm-list-view-cell ptm-switch-body">
<div class="ptm-switch-title">开关样式1</div>
<input type="checkbox" class="ptm-switch ptm-switch-success ptm-pull-right" checked>
</li>
<li class="ptm-list-view-cell ptm-switch-body">
<div class="ptm-switch-title">开关样式2</div>
<input type="checkbox" class="ptm-switch ptm-switch-info ptm-pull-right" checked>
</li>
<li class="ptm-list-view-cell ptm-switch-body">
<div class="ptm-switch-title">开关样式3</div>
<input type="checkbox" class="ptm-switch ptm-switch-danger ptm-pull-right" checked>
</li>
<li class="ptm-list-view-cell ptm-switch-body">
<div class="ptm-switch-title">开关样式4</div>
<input type="checkbox" class="ptm-switch ptm-switch-warning ptm-pull-right" checked>
</li>
</ul>
</div>
<script type="text/javascript" src="./script/jquery.min.js"></script>
<script type="text/javascript" src="./script/ptm.js"></script>
<script type="text/javascript">
</script>
</body>
</html>