分享Bootstrap簡(jiǎn)單表格、表單、登錄頁(yè)面
1.表格
<!doctype html> <html> <head> <meta charset="utf-8"> <title>表格</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet"> <script src="js/jquery-1.9.0.min.js"></script> <script src="js/bootstrap.min.js"></script> </head> <body> <h1>條紋狀表格</h1> <table class="table table-striped"> <thead> <tr> <th>編號(hào)</th> <th>姓名</th> <th>性別</th> <th>年齡</th> <th>地址</th> </tr> </thead> <tbody> <tr> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> <tr> <td>1002</td> <td>悟空</td> <td>男</td> <td>2000</td> <td>水簾洞</td> </tr> <tr> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> <tr> <td>1002</td> <td>悟空</td> <td>男</td> <td>2000</td> <td>水簾洞</td> </tr> <tr> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> </tbody> </table> <h1>帶邊框表格 鼠標(biāo)懸停 緊縮表格</h1> <table class="table table-bordered table-hover table-condensed"> <thead> <tr> <th>編號(hào)</th> <th>姓名</th> <th>性別</th> <th>年齡</th> <th>地址</th> </tr> </thead> <tbody> <tr> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> <tr> <td>1002</td> <td>悟空</td> <td>男</td> <td>2000</td> <td>水簾洞</td> </tr> <tr> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> <tr> <td>1002</td> <td>悟空</td> <td>男</td> <td>2000</td> <td>水簾洞</td> </tr> <tr> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> </tbody> </table> <h1>狀態(tài)類(lèi)</h1> <table class="table "> <thead> <tr class="active"> <th>編號(hào)</th> <th>姓名</th> <th>性別</th> <th>年齡</th> <th>地址</th> </tr> </thead> <tbody> <tr class="success"> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> <tr class="info"> <td>1002</td> <td>悟空</td> <td>男</td> <td>2000</td> <td>水簾洞</td> </tr> <tr class="warning"> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> <tr class="danger"> <td>1002</td> <td>悟空</td> <td>男</td> <td>2000</td> <td>水簾洞</td> </tr> <tr> <td>1001</td> <td>八戒</td> <td>男</td> <td>1000</td> <td>高老莊</td> </tr> </tbody> </table> </body> </html>
2.表單
<!doctype html> <html> <head> <meta charset="utf-8"> <title>表單</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet"> <script src="js/jquery-1.9.0.min.js"></script> <script src="js/bootstrap.min.js"></script> </head> <body> <div class="container"> <input type="text" name="" class=" form-control" placeholder="請(qǐng)輸入"> <div class="form-group has-success has-feedback "> <label class="control-label">姓名:</label> <input type="text" name="" class=" form-control input-lg " placeholder="input-lg"> <span class="glyphicon glyphicon-ok form-control-feedback"></span> </div> <div class="form-group has-success has-feedback "> <label class="control-label">姓名:</label> <input type="text" name="" class=" form-control input-sm " placeholder="input-sm"> <span class="glyphicon glyphicon-ok form-control-feedback"></span> </div> <hr/> <h3>文本域</h3> <textarea class="form-control" rows="5" ></textarea> <h3>多選和單選框</h3> 多選:<br/> <div class="checkbox"> <label> <input type="checkbox" value=""/> 看電影 </label> </div> <div class="checkbox"> <label> <input type="checkbox" value=""/> 看小說(shuō) </label> </div> <div class="checkbox"> <label> <input type="checkbox" value=""/> 玩游戲 </label> </div> 單選:<br/> <div class="radio"> <label> <input type="radio" name="sex" value="保密"/>保密 </label> </div> <div class="radio"> <label> <input type="radio" name="sex" value="男"/>男 </label> </div> <div class="radio"> <label> <input type="radio" name="sex" value="女"/>女 </label> </div> <br/> 一行顯示:<br/> 多選:<br/> <div class=" checkbox-inline"> <label> <input type="checkbox" value=""/> 看電影 </label> </div> <div class="checkbox-inline"> <label> <input type="checkbox" value=""/> 看小說(shuō) </label> </div> <div class="checkbox-inline"> <label> <input type="checkbox" value=""/> 玩游戲 </label> </div> 單選:<br/> <div class="radio-inline"> <label> <input type="radio" name="sex" value="保密"/>保密 </label> </div> <div class="radio-inline"> <label> <input type="radio" name="sex" value="男"/>男 </label> </div> <div class="radio-inline"> <label> <input type="radio" name="sex" value="女"/>女 </label> </div> 下拉列表: <select class="form-control"> <option>請(qǐng)選擇</option> <option>技術(shù)部</option> <option>研發(fā)部</option> <option>后勤部</option> </select> </div> </body> </html>
登錄1
<!doctype html> <html> <head> <meta charset="utf-8"> <title>登錄</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet"> <script src="js/jQuery-1.9.0.min.js"></script> <script src="js/bootstrap.min.js"></script> </head> <body> <div class="Container"> <div class="row"> <div class="col-md-4 col-md-offset-4"> <h1 class="page-header">用戶(hù)登錄</h1> <form role="form"> <div class="form-group"> <label for="userId">用戶(hù)名:</label> <input type="text" class="form-control" placeholder="請(qǐng)輸入賬號(hào)" id="userId" name="userId"> </div> <div class="form-group"> <label for="password">密 碼:</label> <input type="password" class="form-control" placeholder="請(qǐng)輸入密碼" id="password" name="password"> </div> <div class="checkbox"> <label> <input type="checkbox"/>記住密碼 </label> <br/> <input type="submit" value="登錄" class="btn"/> </div> </form> </div> </div> </div> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>登錄</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet"> <script src="js/jquery-1.9.0.min.js"></script> <script src="js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h1 class="page-header">用戶(hù)登錄</h1> <form class="form-inline" role="form"> <div class="form-group"> <div class="input-group" > <div class="input-group-addon">@</div> <input type="text" class="form-control" placeholder="請(qǐng)輸入賬號(hào)" id="userId" name="userId"> </div> </div> <div class="form-group"> <label for="password" class="sr-only">密 碼:</label> <input type="password" class="form-control" placeholder="請(qǐng)輸入密碼" id="password" name="password"> </div> <div class="checkbox"> <label> <input type="checkbox"/>記住密碼 </label> <input type="submit" value="登錄" class="btn"/> </div> </form> </div> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>登錄</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet"> <script src="js/jquery-1.9.0.min.js"></script> <script src="js/bootstrap.min.js"></script> </head> <body> <div class=" container"> <div class="row"> <div class="col-md-6"> <h2>用戶(hù)登錄</h2> <form class="form-horizontal" role="form"> <div class="form-group has-success "> <label class="col-md-3 control-label" for="userId">賬號(hào):</label> <div class="col-md-6"> <input type="text" class="form-control" placeholder="請(qǐng)輸入賬號(hào)" id="userId" name="userId"> </div> <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span> </div> <div class="form-group has-error"> <label class="col-md-3 control-label" for="password">密碼:</label> <div class="col-md-6"> <input type="password" class="form-control" placeholder="請(qǐng)輸入密碼" id="password" name="password"> </div> </div> <div class="form-group"> <div class="col-md-4 col-md-offset-3"> <input type="submit" value="登錄" class="btn"/> <input type="reset" value="重置" class="btn"/> </div> </div> </form> </div> </div> </div> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>登錄</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet"> <script src="js/jquery-1.9.0.min.js"></script> <script src="js/bootstrap.min.js"></script> </head> <body> <div class=" container"> <div class="row"> <div class="col-md-6"> <h2>用戶(hù)登錄</h2> <form class="form-horizontal" role="form"> <div class="form-group"> <label class="col-md-3 control-label" for="userId">賬號(hào):</label> <div class="col-md-6"> <p class=" form-control-static">admin123456</p> </div> </div> <div class="form-group"> <label class="col-md-3 control-label" for="password">密碼:</label> <div class="col-md-6"> <p class="form-control-static">123456</p> </div> </div> </form> </div> </div> </div> </body> </html>
總結(jié)
以上所述是小編給大家介紹的分享Bootstrap簡(jiǎn)單表格、表單、登錄頁(yè)面,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
- Bootstrap實(shí)現(xiàn)登錄校驗(yàn)表單(帶驗(yàn)證碼)
- 使用BootStrap實(shí)現(xiàn)用戶(hù)登錄界面UI
- jfinal與bootstrap的登錄跳轉(zhuǎn)實(shí)戰(zhàn)演習(xí)
- php bootstrap實(shí)現(xiàn)簡(jiǎn)單登錄
- Bootstrap彈出帶合法性檢查的登錄框?qū)嵗a【推薦】
- bootstrap flask登錄頁(yè)面編寫(xiě)實(shí)例
- PHP實(shí)現(xiàn)登錄注冊(cè)之BootStrap表單功能
- 基于Bootstrap實(shí)現(xiàn)下拉菜單項(xiàng)和表單導(dǎo)航條(兩個(gè)菜單項(xiàng),一個(gè)下拉菜單和登錄表單導(dǎo)航條)
- Bootstrap中文本框的寬度變窄并且加入一副驗(yàn)證碼圖片的實(shí)現(xiàn)方法
- Bootstrap實(shí)現(xiàn)前端登錄頁(yè)面帶驗(yàn)證碼功能完整示例
相關(guān)文章
js 函數(shù)的執(zhí)行環(huán)境和作用域鏈的深入解析
在js中對(duì)象的外在表現(xiàn)形式為函數(shù)。2009-11-11Bootstrap學(xué)習(xí)筆記之進(jìn)度條、媒體對(duì)象實(shí)例詳解
這篇文章主要介紹了Bootstrap進(jìn)度條、媒體對(duì)象實(shí)例詳解,進(jìn)度條包括基礎(chǔ)進(jìn)度條,多彩進(jìn)度條,條紋狀進(jìn)度條等內(nèi)容,具體實(shí)現(xiàn)代碼大家參考下本文2017-03-03初步使用bootstrap快速創(chuàng)建頁(yè)面
初步嘗試使用Express搭建了一個(gè)Web框架,那么接下來(lái)就是要在該框架下寫(xiě)上自己的頁(yè)面,快速創(chuàng)建頁(yè)面這里選擇了bootstrap前端框架,通過(guò)它即使你不太懂前端設(shè)計(jì),寫(xiě)出來(lái)的頁(yè)面也不會(huì)太難看,感興趣的小伙伴們可以參考一下2016-03-03CocosCreator通用框架設(shè)計(jì)之資源管理
這篇文章主要介紹了CocosCreator通用框架設(shè)計(jì)之資源管理,對(duì)性能優(yōu)化感興趣的同學(xué),一定要看一下2021-04-04javascript發(fā)送短信驗(yàn)證碼實(shí)現(xiàn)代碼
我們?cè)谧?cè)賬號(hào),或者是參加活動(dòng)時(shí),都會(huì)向手機(jī)發(fā)送收短信驗(yàn)證碼,短信驗(yàn)證碼到底是如何實(shí)現(xiàn)的,本文為大家揭曉,并為大家分項(xiàng)1javascript發(fā)送短信驗(yàn)證碼實(shí)現(xiàn)代碼,感興趣的小伙伴們可以參考一下2015-11-11uniapp使用uni.chooseLocation()打開(kāi)地圖選擇位置詳解
這篇文章主要給大家介紹了關(guān)于uniapp使用uni.chooseLocation()打開(kāi)地圖選擇位置的相關(guān)資料,因?yàn)樽罱陧?xiàng)目中遇到一個(gè)要用戶(hù)授權(quán)位置且可以用戶(hù)自己選擇位置的功能,需要的朋友可以參考下2023-06-06仿淘寶首頁(yè)分類(lèi)列表效果實(shí)現(xiàn)代碼
模板淘寶首頁(yè)的分類(lèi)列表效果,17173的游戲分類(lèi)效果也不錯(cuò)。2009-04-04