国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 編程 > JavaScript > 正文

Bootstrap表單控件使用方法詳解

2019-11-19 18:00:42
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

表單作為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í)有所幫助,也希望大家多多支持武林網(wǎng)。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 弥渡县| 陇南市| 峨眉山市| 高青县| 石阡县| 土默特左旗| 平原县| 通江县| 出国| 遂溪县| 海兴县| 郑州市| 镇康县| 涿州市| 祁门县| 扎兰屯市| 商河县| 三台县| 东丰县| 溧阳市| 天祝| 遵化市| 泸水县| 萨迦县| 宁南县| 永定县| 竹山县| 蓝田县| 安吉县| 耒阳市| 江达县| 静海县| 孝义市| 宁都县| 万载县| 缙云县| 柘荣县| 修武县| 军事| 永丰县| 宁国市|