Rumah > hujung hadapan web > tutorial js > ionic之样式复选框

ionic之样式复选框

黄舟
Lepaskan: 2017-02-16 14:02:13
asal
1311 orang telah melayarinya

1、实例背景

     ionic复选框用的是checkbox,checkbox有各种各样的样式


2、实例源码

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>ionic之样式复选框</title>
		<link rel="stylesheet" href="../css/ionic.css" />
		<script type="text/javascript" src="../js/ionic.bundle.js" ></script>
	</head>
	<body ng-app="calmApp" ng-controller="calmController">
		<p class="content has-header">
			<ul class="list">
				<li class="item item-checkbox">
					<label class="checkbox">
						<input type="checkbox" />
					</label>
					一月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-assertive">
						<input type="checkbox" />
					</label>
					二月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-balanced">
						<input type="checkbox" />
					</label>
					三月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-calm">
						<input type="checkbox" />
					</label>
					四月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-dark">
						<input type="checkbox" />
					</label>
					五月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-energized">
						<input type="checkbox" />
					</label>
					六月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-light">
						<input type="checkbox" />
					</label>
					七月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-platform">
						<input type="checkbox" />
					</label>
					八月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-positive">
						<input type="checkbox" />
					</label>
					九月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-royal">
						<input type="checkbox" />
					</label>
					十月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-square">
						<input type="checkbox" />
					</label>
					十一月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-stable">
						<input type="checkbox" />
					</label>
					十二月
				</li>
				<li class="item item-checkbox">
					<label class="checkbox checkbox-stable">
						<input type="checkbox" />
					</label>
					十二月
				</li>
			</ul>
		</p>
	</body>
</html>
Salin selepas log masuk


3、实例结果

1126.png

 以上就是ionic之样式复选框的内容,更多相关内容请关注PHP中文网(www.php.cn)!


Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan