ionic之单选框

黄舟
Lepaskan: 2017-02-16 14:00:09
asal
968 orang telah melayarinya

1、实例背景

      ionic单选框用的是radio,设置样式item-radio


2、实例源码

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
		<title>ionic之单选框</title>
		<link rel="stylesheet" href="../css/ionic.css" />
		<script type="text/javascript" src="../js/angular/angular.js" ></script>
		<script type="text/javascript" src="../js/ionic.js"></script>
		<script type="text/javascript" src="../js/ionic-angular.js" ></script>
		<script type="text/javascript" src="../js/ionic.bundle.js" ></script>
	</head>
	<body>
		<p class="content has-header">
	      	<p class="list">
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	一月
		          	</p>
		          	<i class="radio-icon ion-checkmark "></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	二月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	三月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	四月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	五月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	六月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	七月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	八月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	九月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	十月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	十一月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	十二月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		        <label class="item item-radio">
		          	<input type="radio" name="group" value="go" checked="checked">
		          	<p class="item-content">
		            	十二月
		          	</p>
		          	<i class="radio-icon ion-checkmark"></i>
		        </label>
		    </p>
		</p>

	</body>
</html>
Salin selepas log masuk


3、实例结果

1125.png

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


Label berkaitan:
sumber: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