Bootstrap表单

TemplarAssassin 2017-10-16

form-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" type="text/css">
<!--[if lt IE 9]>
      <script src="../bootstrap/js/html5.js"></script>
<![endif]-->
</head>

<body>
<div class="container">
  <h1 class="page-header">表单</h1>
  
  <label for="username">用户名</label>
  <input id="username" type="text" class="span3" placeholder="输入您的用户名">
  <p class="help-block">请输入您登录时使用的用户名</p>
      
    <label>性别</label>
	<label class="radio"> 
    <input name="gender" type="radio" value="male">男</label>
    <label class="radio"> 
    <input name="gender" type="radio" value="female">女</label>
    <label class="radio"> 
    <input name="gender" type="radio" value="other">其他</label>
    
    <label>选择你喜欢的 CMS</label>
    <label class="checkbox inline">
    <input type="checkbox" value="wordpress">Wordpress</label>
    <label class="checkbox inline">
    <input type="checkbox" value="joomla">Joomla</label>
    <label class="checkbox inline">
    <input type="checkbox" value="drupal">Drupal</label>
     
    <label>想去的地方</label>
     <select multiple="multiple">
     	<option value="italy">意大利</option>
        <option value="US">美国</option>
        <option value="UK">英国</option>
     </select>
     
    
     <div class="input-prepend input-append">
     <span class="add-on">&yen;</span><input type="text"><span class="add-on">.00</span>
     </div>
     <div class="input-append">
     <input type="text"><button class="btn">搜索</button>
     </div>
      
       
</div>
<script src="../bootstrap/js/jquery-1.7.2.min.js"></script> 
<script src="../bootstrap/js/bootstrap.js"></script>
</body>
</html>

相关推荐