欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Bootstrap表單控件使用方法詳解

 更新時(shí)間:2017年01月11日 11:33:58   作者:小魚(yú)兒_zhang  
Bootstrap讓W(xué)eb開(kāi)發(fā)更迅速、更簡(jiǎn)單,這篇文章主要為大家詳細(xì)介紹了Bootstrap表單控件,用來(lái)與用戶做交流的一個(gè)網(wǎng)頁(yè)控件,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

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

<!DOCTYPE html>
<html lang="en">
 <head>
 <meta charset="utf-8">

 <!-- 使用最新的瀏覽器內(nèi)核解析 -->
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <!-- 移動(dòng)設(shè)備優(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="http://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="請(qǐng)輸入用戶名"></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="請(qǐng)輸入用密碼"></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" >愛(ài)好:</label>
  <div class="col-md-10">
  <div class="checkbox">
  <label class="checkbox-inline">
   <input type="checkbox">畫(huà)畫(huà)</input>
  </label>

  <label class="checkbox-inline">
   <input type="checkbox">音樂(lè)</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">學(xué)歷:</label>
  <div class="col-md-10">
  <div class="radio">
  <label class="radio-inline">
   <input name="raido" type="radio">中學(xué)</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">個(gè)人簡(jiǎn)歷</label>
  <div class="col-md-10">
  <textarea class="form-control" name="person" rows="5" placeholder="請(qǐng)輸入">


  </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>

如果大家還想深入學(xué)習(xí),可以點(diǎn)擊這里進(jìn)行學(xué)習(xí),再為大家附3個(gè)精彩的專題:

Bootstrap學(xué)習(xí)教程

Bootstrap實(shí)戰(zhàn)教程

Bootstrap Table使用教程

Bootstrap插件使用教程

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • 淺談JavaScript的計(jì)時(shí)器對(duì)象

    淺談JavaScript的計(jì)時(shí)器對(duì)象

    下面小編就為大家?guī)?lái)一篇淺談JavaScript的計(jì)時(shí)器對(duì)象。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧,祝大家游戲愉快哦
    2016-12-12
  • JS window.opener返回父頁(yè)面的應(yīng)用

    JS window.opener返回父頁(yè)面的應(yīng)用

    網(wǎng)上支付開(kāi)發(fā)分為支付平臺(tái)和客戶端兩部分。當(dāng)客戶端進(jìn)入支付平臺(tái)時(shí),需要在新窗體打開(kāi)支付平臺(tái)頁(yè)面。
    2009-10-10
  • location對(duì)象的屬性和方法應(yīng)用(解析URL)

    location對(duì)象的屬性和方法應(yīng)用(解析URL)

    本文將與大家分享下location對(duì)象使用屬性和方法來(lái)解析URL的實(shí)例,感興趣的朋友可以參考下,希望對(duì)你有所幫助
    2013-04-04
  • js簡(jiǎn)單的點(diǎn)擊返回頂部效果實(shí)現(xiàn)方法

    js簡(jiǎn)單的點(diǎn)擊返回頂部效果實(shí)現(xiàn)方法

    這篇文章主要介紹了js簡(jiǎn)單的點(diǎn)擊返回頂部效果實(shí)現(xiàn)方法,實(shí)例分析了實(shí)現(xiàn)返回頂部效果的相關(guān)要點(diǎn)與實(shí)現(xiàn)技巧,需要的朋友可以參考下
    2015-04-04
  • js 截取或者替換字符串中的數(shù)字實(shí)現(xiàn)方法

    js 截取或者替換字符串中的數(shù)字實(shí)現(xiàn)方法

    下面小編就為大家?guī)?lái)一篇js 截取或者替換字符串中的數(shù)字實(shí)現(xiàn)方法。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2016-06-06
  • js 自動(dòng)播放的實(shí)例代碼

    js 自動(dòng)播放的實(shí)例代碼

    這篇文章主要介紹了js 自動(dòng)播放的實(shí)例代碼,有需要的朋友可以參考一下
    2013-11-11
  • JS控制阿拉伯?dāng)?shù)字轉(zhuǎn)為中文大寫(xiě)示例代碼

    JS控制阿拉伯?dāng)?shù)字轉(zhuǎn)為中文大寫(xiě)示例代碼

    阿拉伯?dāng)?shù)字如何轉(zhuǎn)為中文大寫(xiě)這個(gè)實(shí)現(xiàn)的方法有很多,在本文將為大家介紹下js中時(shí)如何實(shí)現(xiàn)的,感興趣的朋友可以參考下
    2013-09-09
  • 一文詳解requestAnimationFrame請(qǐng)求動(dòng)畫(huà)幀

    一文詳解requestAnimationFrame請(qǐng)求動(dòng)畫(huà)幀

    requestAnimationFrame是一個(gè)用于動(dòng)畫(huà)效果的 API,它使用瀏覽器的刷新率來(lái)執(zhí)行回調(diào)函數(shù),通常每秒鐘執(zhí)行60次,這篇文章主要給大家介紹了關(guān)于requestAnimationFrame請(qǐng)求動(dòng)畫(huà)幀的相關(guān)資料,需要的朋友可以參考下
    2023-12-12
  • JS實(shí)現(xiàn)雙擊內(nèi)容變?yōu)榭删庉嫚顟B(tài)

    JS實(shí)現(xiàn)雙擊內(nèi)容變?yōu)榭删庉嫚顟B(tài)

    在一些網(wǎng)站上我們經(jīng)??吹浇换バ院軓?qiáng)的功能。一些用戶資料可以直接雙擊出現(xiàn)文本框,并在此輸入新的資料即可修改,無(wú)需再按確定按鈕等。怎么實(shí)現(xiàn)的呢?今天小編給大家分享JS實(shí)現(xiàn)雙擊內(nèi)容變?yōu)榭删庉嫚顟B(tài),需要的的朋友參考下
    2017-03-03
  • JavaScript實(shí)現(xiàn)簡(jiǎn)易tab欄切換內(nèi)容欄

    JavaScript實(shí)現(xiàn)簡(jiǎn)易tab欄切換內(nèi)容欄

    這篇文章主要為大家詳細(xì)介紹了JavaScript實(shí)現(xiàn)簡(jiǎn)易tab欄切換內(nèi)容欄,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2021-05-05

最新評(píng)論