按钮(Button)插件单选按钮

2017-07-12 10:27:00
admin
原创
473
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>Bootstrap 实例 - 按钮(Button)插件单选按钮</title>
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="btn-group" data-toggle="buttons">
	<label class="btn btn-primary">
		<input type="radio" name="options" id="option1"> 选项 1
	</label>
	<label class="btn btn-primary">
		<input type="radio" name="options" id="option2"> 选项 2
	</label>
	<label class="btn btn-primary">
		<input type="radio" name="options" id="option3"> 选项 3
	</label>
</div>	

</body>
</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络