Bootstrap复选框

checkbox-finish.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>复选框</title>
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<!--[if lt IE 9]>
      <script src="../bootstrap/js/html5.js"></script>
<![endif]-->
</head>

<body>
<div class="container">
  <h1 class="page-header">复选框</h1>
  <label>选择您喜欢的 CMS </label>
  <label class="checkbox inline">
 	<input type="checkbox" name="cms" value="wordpress">Wordpress</label>
 <label class="checkbox inline">
 	<input type="checkbox" name="cms" value="drupal">Drupal</label>
 <label class="checkbox inline">
 	<input type="checkbox" name="cms" value="joomla">Joomla</label>
</div>
<script src="../bootstrap/js/jquery-1.7.2.min.js"></script> 
<script src="../bootstrap/js/bootstrap.js"></script>
</body>
</html>

猜你喜欢

转载自beckham-xiao.iteye.com/blog/2396900