国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Bootstrap表單控件使用方法詳解

原創(chuàng) 2017-01-14 10:35:54 1312
摘要:表單作為Bootstrap的核心內容,主要功能是用來與用戶做交流的一個網(wǎng)頁控件,良好的表單設計能夠讓網(wǎng)頁與用戶更好的溝通。<!DOCTYPE html> <html lang="en">  <head>   <meta charset="utf-8">

表單作為Bootstrap的核心內容,主要功能是用來與用戶做交流的一個網(wǎng)頁控件,良好的表單設計能夠讓網(wǎng)頁與用戶更好的溝通。

<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8"> 
  <!-- 使用最新的瀏覽器內核解析 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!-- 移動設備優(yōu)先 -->
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <!-- Bootstrap CSS -->
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"> 
  <!--[if lt IE 9]>
   <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
   <scri></script>
  <![<endifdiv class="form-group"></endifdiv>]-->
 </head>
 <body>
 <div class="container">
 <!--
   表單的柵格系統(tǒng)使用 form-horizontal
   div的柵格系統(tǒng)使用 row
  -->
 <form class="form-horizontal">
  <div class="form-group">
   <label class="col-md-2 control-label" for="username">用戶名:</label> 
   <div class="col-md-10">
    <input id="username" class="form-control" type="text" name="username" value="" placeholder="請輸入用戶名"></input>
   </div>
  </div>
  <div class="form-group">
   <label class="col-md-2 control-label" for="password">密 碼:</label>
   <div class="col-md-10">
   <input id="password" class="form-control" type="password" name="password" value="" placeholder="請輸入用密碼"></input>
   </div>
  </div> 
  <div class="form-group">
   <label class="col-md-2 control-label" for="file">上傳文件:</label>
   <div class="col-md-10">
   <input id="file" type="file" name="file" value=""></input>
   </div>
  </div> 
  <div class="form-group">
   <label class="col-md-2 control-label" >愛好:</label>
   <div class="col-md-10">
   <div class="checkbox">
    <label class="checkbox-inline">
     <input type="checkbox">畫畫</input>
    </label> 
    <label class="checkbox-inline">
     <input type="checkbox">音樂</input>
    </label> 
    <label class="checkbox-inline">
     <input type="checkbox">體育</input>
    </label>
   </div>
   </div> 
  </div> 
   <div class="form-group">
   <label class="col-md-2 control-label">學歷:</label>
   <div class="col-md-10">
   <div class="radio">
    <label class="radio-inline">
     <input name="raido" type="radio">中學</input>
    </label> 
    <label class="radio-inline">
     <input name="raido" type="radio">大專</input>
    </label> 
    <label class="radio-inline">
     <input name="raido" type="radio">研究生</input>
    </label>
   </div>  
   </div>
  </div> 
  <div class="form-group">
   <label class="col-md-2 control-label">個人簡歷</label>
   <div class="col-md-10">
   <textarea class="form-control" name="person" rows="5" placeholder="請輸入">  
   </textarea>
   </div>
  </div> 
  <div class="col-md-10 col-md-offset-2">
  <button type="button" class="btn btn-success">提交表單</button>
 </div>
 </form>  
 </div>  
  <!-- jQuery first, then Bootstrap JS. -->
  <script src="bootstrap/js/jquery.min.js"></script>
  <script src="bootstrap/js/bootstrap.js"></script>
 </body>
</html>

  更多關于Bootstrap表單控件使用方法詳解請關注PHP中文網(wǎng)(www.miracleart.cn)其他文章!

發(fā)佈手記

熱門詞條