bootstrap輸入框組使用方法
更新時間:2017年02月07日 15:33:24 作者:輕擾時光
這篇文章主要為大家詳細介紹了bootstrap輸入框組的使用方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下
本文實例為大家分享了bootstrap輸入框組的使用方法,供大家參考,具體內(nèi)容如下
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap</title> <link rel="stylesheet" href="css/bootstrap.css" rel="external nofollow" /> </head> <body> <div class="container"> <div class="row"> <div class="input-group"><!--輸入框組--> <span class="input-group-addon">@</span> <!--input-group-addon給輸入框前后添加輔助的額外元素--> <input type="text" class="form-control"/> </div> </div> <!--輸入框組的大小--> <div class="row" style="margin-top:10px;"> <div class="input-group input-group-lg"> <!--input-group-lg為輸入框組尺寸還有md,sm--> <span class="input-group-addon">@</span> <!--給輸入框前后添加輔助的額外元素--> <input type="text" class="form-control"/> </div> </div> <div class="row" style="margin-top:10px;"> <div class="input-group"> <span class="input-group-addon"> <input type="checkbox"/> <!--輸入框組添加額外元素為checkbox,還可以是radio--> </span> <input type="text" class="form-control"/> </div> </div> <div class="row" style="margin-top:10px;"> <div class="input-group"> <input type="text" class="form-control"/> <span class="input-group-btn"> <button class="btn btn-default">搜索</button> </span> </div> </div> <div class="row" style="margin-top:10px;"> <div class="input-group"> <div class="input-group-btn"> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">學(xué)院課程<span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >html</a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >css</a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >javascript</a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >less</a></li> <li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >bootstrap</a></li> </ul> </div> <input type="text" class="form-control"/> </div> </div> </div> <script src="js/jquery-2.1.0.js"></script> <script src="js/bootstrap.js"></script> </body> </html>
效果圖:
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
您可能感興趣的文章:
- bootstrap輸入框組件使用方法詳解
- Bootstrap CSS組件之輸入框組
- Bootstrap基本組件學(xué)習(xí)筆記之input輸入框組(9)
- bootstrap下拉列表與輸入框組結(jié)合的樣式調(diào)整
- bootstrap輸入框組代碼分享
- 基于Bootstrap使用jQuery實現(xiàn)輸入框組input-group的添加與刪除
- Bootstrap3 input輸入框插入glyphicon圖標的方法
- bootstrap布局中input輸入框右側(cè)圖標點擊功能
- BootStrap點擊下拉菜單項后顯示一個新的輸入框?qū)崿F(xiàn)代碼
- 基于Bootstrap重置輸入框內(nèi)容按鈕插件