Home > Web Front-end > JS Tutorial > ionic style checkbox

ionic style checkbox

黄舟
Release: 2017-02-16 14:02:13
Original
1257 people have browsed it

1. Example background

ionic checkbox uses checkbox, and checkbox has various styles


2. Example source code

##

<!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>
Copy after login


3. Example result

ionic style checkbox

The above is the content of ionic's style check box. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template