成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

bootstrap輸入框組件使用方法詳解

本文實(shí)例為大家分享了bootstrap輸入框組的具體使用方法,供大家參考,具體內(nèi)容如下

創(chuàng)新互聯(lián)是一家專注于成都做網(wǎng)站、成都網(wǎng)站建設(shè)與策劃設(shè)計(jì),湘東網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十載,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:湘東等地區(qū)。湘東做網(wǎng)站價(jià)格咨詢:028-86922220

1、基本用法

我們有時(shí)需要在輸入框一側(cè)或兩側(cè)添加額外的元素
這個(gè)時(shí)候只需要把所有元素都包裹在一個(gè).input-group的div里面就可以
但是每個(gè)輸入框組只能有一個(gè)input

bootstrap輸入框組件使用方法詳解

<div class="input-group">
 <span class="input-group-addon">@</span>
 <input type="text" class="form-control" placeholder="Username">
</div>

<div class="input-group">
 <input type="text" class="form-control">
 <span class="input-group-addon">.00</span>
</div>

<div class="input-group">
 <span class="input-group-addon">$</span>
 <input type="text" class="form-control">
 <span class="input-group-addon">.00</span>
</div>

2、尺寸

給最外層的.input-group添加.input-group-lg.input-group-sm.input-group-xs
就可以實(shí)現(xiàn)輸入框組的大小變化

<div class="input-group input-group-lg">
 <span class="input-group-addon">@</span>
 <input type="text" class="form-control" placeholder="Username">
</div>

3、單選框作為額外元素

只需要把span里面的文字替換成對(duì)應(yīng)的radio就可以了

bootstrap輸入框組件使用方法詳解

<div class="input-group">
 <span class="input-group-addon">
  <input type="radio"/> 
 </span>
 <input type="text" class="form-control"/>
</div>

4、多選框作為額外元素

只需要把span里面的文字替換成對(duì)應(yīng)的checkbox就可以了

<div class="input-group">
 <span class="input-group-addon">
  <input type="checkbox">
 </span>
 <input type="text" class="form-control">
</div>

5、按鈕作為額外元素

span的類不再是.input-group-addon,變成.input-group-btn
span里面的文字替換成button就可以了

<div class="input-group">
 <span class="input-group-btn">
  <button type="button" class="btn btn-default">Go</button>
 </span>
 <input type="text" class="form-control" />
</div>

6、下拉式菜單作為額外元素

把對(duì)應(yīng)的span替換成下拉式菜單,同時(shí)修改下拉式菜單最外層的類
不是.dropdown或者.btn-group,而是.input-group-btn

<div class="input-group">
 <div class="input-group-btn">
 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
  Action 
  <span class="caret"></span>
 </button>
 <ul class="dropdown-menu" role="menu">
  <li><a href="#">Action</a></li>
  <li><a href="#">Another action</a></li>
  <li><a href="#">Something else here</a></li>
  <li class="divider"></li>
  <li><a href="#">Separated link</a></li>
 </ul>
 </div>
 <input type="text" class="form-control">
</div>
<div class="input-group">
 <div class="input-group-btn">
 <button type="button" class="btn btn-default">Action</button>
 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
  <span class="caret"></span>
 </button>
 <ul class="dropdown-menu" role="menu">
  <li><a href="#">Action</a></li>
  <li><a href="#">Another action</a></li>
  <li><a href="#">Something else here</a></li>
  <li class="divider"></li>
  <li><a href="#">Separated link</a></li>
 </ul>
 </div>
 <input type="text" class="form-control">
</div>

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持創(chuàng)新互聯(lián)。

文章名稱:bootstrap輸入框組件使用方法詳解
文章位置:http://jinyejixie.com/article34/pppepe.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站移動(dòng)網(wǎng)站建設(shè)、Google、響應(yīng)式網(wǎng)站、關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站網(wǎng)頁(yè)設(shè)計(jì)
太湖县| 新建县| 永川市| 景泰县| 乐山市| 新竹县| 福建省| 章丘市| 沁阳市| 夏邑县| 汝州市| 苍南县| 宽甸| 精河县| 金阳县| 桃源县| 句容市| 西宁市| 黄浦区| 静海县| 五华县| 洛浦县| 准格尔旗| 正安县| 庆安县| 邵东县| 乐都县| 藁城市| 衡水市| 马鞍山市| 安龙县| 平罗县| 柯坪县| 苗栗县| 安西县| 北京市| 天水市| 罗江县| 莲花县| 饶河县| 祁连县|