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

首頁 > 語言 > JavaScript > 正文

bootstrap表單示例代碼分享

2024-05-06 15:17:01
字體:
供稿:網(wǎng)友

本文實(shí)例為大家分享了bootstrap表單的具體代碼,供大家參考,具體內(nèi)容如下

<!DOCTYPE html> <html lang="zh-CN"> <head>  <meta charset="utf-8">  <meta http-equiv="X-UA-Compatible" content="IE=edge">  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">  <title>表單和圖片</title>  <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css" rel="external nofollow" >  <link rel="stylesheet" href="css/main.css" rel="external nofollow" >  <!--[if lt IE 9]>  <script src="lib/html5shiv/html5shiv.min.js"></script>  <script src="lib/respond/respond.min.js"></script>  <![endif]--> </head> <body>  <form>  <label>用戶名:</label>  <input type="text" placeholder="請(qǐng)輸入用戶名">   <label>密碼:</label>  <input type="password" placeholder="請(qǐng)輸入密碼"> </form> <form>  <label>用戶名:</label>  <input type="text" placeholder="請(qǐng)輸入用戶名" class="form-control">   <label>密碼:</label>  <input type="password" placeholder="請(qǐng)輸入密碼" class="form-control"> </form> <!--基本表單--> <form>  <div class="form-group">   <label>用戶名:</label>   <input type="text" placeholder="請(qǐng)輸入用戶名" class="form-control">  </div>   <div class="form-group">   <label>密碼:</label>   <input type="password" placeholder="請(qǐng)輸入密碼" class="form-control">  </div> </form> <!--內(nèi)聯(lián)表單--> <form class="form-inline"><!--當(dāng)屏幕小于768時(shí),變?yōu)閮尚?->  <div class="form-group">   <label>用戶名:</label>   <input type="text" placeholder="請(qǐng)輸入用戶名" class="form-control">  </div>   <div class="form-group">   <label>密碼:</label>   <input type="password" placeholder="請(qǐng)輸入密碼" class="form-control">  </div> </form> <!--加入input-group-addon--> <form class="form-inline">  <div class="form-group">   <label>用戶名:</label>   <input type="text" placeholder="請(qǐng)輸入用戶名" class="form-control">  </div>   <div class="form-group">   <label>密碼:</label>   <input type="password" placeholder="請(qǐng)輸入密碼" class="form-control">  </div>   <div class="input-group">   <div class="input-group-addon">¥</div>   <input type="number" placeholder="請(qǐng)輸入整數(shù)" class="form-control">   <div class="input-group-addon">元</div>  </div> </form> <!--水平表單--> <form class="form-horizontal"><!--當(dāng)屏幕小于768時(shí),變?yōu)閮尚?->  <div class="form-group">   <div class="col-sm-2 control-label">    <label>用戶名:</label>   </div>   <div class="col-sm-10">    <input type="text" placeholder="請(qǐng)輸入用戶名" class="form-control">   </div>  </div>   <div class="form-group">   <div class="col-sm-2 control-label">    <label>密碼:</label>   </div>   <div class="col-sm-10">    <input type="password" placeholder="請(qǐng)輸入密碼" class="form-control">   </div>  </div> </form> <!--文本域--> <form>  <textarea rows="3"></textarea> </form> <form>  <div class="form-group">   <label>文本域</label>   <textarea rows="3" class="form-control"></textarea>  </div> </form> <!--復(fù)選框--> <form>  <input type="checkbox">體育  <input type="checkbox">音樂   <label>   <input type="checkbox">體育  </label>  <label>   <input type="checkbox">音樂  </label> <!--基本復(fù)選框和復(fù)選框設(shè)置禁用-->  <div class="checkbox">   <label>    <input type="checkbox">體育   </label>  </div>  <div class="checkbox">   <label>    <input type="checkbox">音樂   </label>  </div>  <div class="checkbox disabled">   <label>    <input type="checkbox" disabled>愛好   </label>  </div> <!--內(nèi)聯(lián)復(fù)選框--><!--復(fù)選框用法和單選框一樣的-->   <label class="checkbox-inline">    <input type="checkbox">體育   </label>   <label class="checkbox-inline">    <input type="checkbox">音樂   </label>   <label class="checkbox-inline disabled">    <input type="checkbox" disabled>愛好   </label> </form> <!--下拉框--> <form>  <select>   <option>1</option>   <option>2</option>   <option>3</option>   <option>4</option>  </select>  <select class="form-control">   <option>1</option>   <option>2</option>   <option>3</option>   <option>4</option>  </select> </form> <!--校驗(yàn)狀態(tài)--> <form>  <div class="form-group has-success has-feedback">   <label class="control-label">用戶名:</label>   <input type="text" placeholder="請(qǐng)輸入用戶名" class="form-control">   <span class="glyphicon glyphicon-ok form-control-feedback"></span>  </div>  <div class="form-group">   <label>密碼:</label>   <input type="password" placeholder="請(qǐng)輸入密碼" class="form-control">  </div> </form> <script src="lib/jquery/jquery.js"></script> <script src="lib/bootstrap/js/bootstrap.js"></script> <script src="js/main.js"></script> </body>  </html>             
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表

圖片精選

主站蜘蛛池模板: 青龙| 桦川县| 张掖市| 卫辉市| 开江县| 娱乐| 锡林浩特市| 本溪| 江安县| 博湖县| 桂林市| 海门市| 赫章县| 通河县| 寿阳县| 建阳市| 涿鹿县| 漳州市| 玛曲县| 镇平县| 利川市| 东宁县| 鹤壁市| 北流市| 紫金县| 奉节县| 古丈县| 洪洞县| 高密市| 沙河市| 天全县| 九台市| 长沙县| 繁昌县| 承德市| 光山县| 拉萨市| 夏邑县| 隆昌县| 西平县| 青州市|