本篇文章給大家分享的是有關(guān)如何在Bootstrap中使用表單控件,小編覺得挺實(shí)用的,因此分享給大家學(xué)習(xí),希望大家閱讀完這篇文章后可以有所收獲,話不多說,跟著小編一起來看看吧。
<!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="//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">學(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è)人簡歷</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中使用表單控件,小編相信有部分知識(shí)點(diǎn)可能是我們?nèi)粘9ぷ鲿?huì)見到或用到的。希望你能通過這篇文章學(xué)到更多知識(shí)。更多詳情敬請關(guān)注創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司行業(yè)資訊頻道。
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)建站www.chinadenli.net,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
網(wǎng)站名稱:如何在Bootstrap中使用表單控件-創(chuàng)新互聯(lián)
本文網(wǎng)址:http://www.chinadenli.net/article28/dhdijp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站、企業(yè)建站、虛擬主機(jī)、手機(jī)網(wǎng)站建設(shè)、全網(wǎng)營銷推廣、搜索引擎優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容