Bootstrap表單簡(jiǎn)單實(shí)現(xiàn)代碼
更新時(shí)間:2017年03月06日 09:36:58 作者:deepquiet
這篇文章主要為大家詳細(xì)介紹了Bootstrap表單的簡(jiǎn)單實(shí)現(xiàn)代碼,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
本文實(shí)例為大家分享了Bootstrap表單的具體實(shí)現(xiàn)代碼,供大家參考,具體內(nèi)容如下
<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 101 Template</title>
<link rel="external nofollow" rel="stylesheet">
<link rel="external nofollow" rel="stylesheet">
<!--
<style>
div{
width:100px;
height:100px;
margin-top:10px;
background:pink;
}
span{
width:100px;
height:100px;
margin-top:10px;
background:yellow;
}
</style>
-->
</head>
<body>
<!-- 內(nèi)聯(lián)表單 橫向排列-->
<form class="form-inline" role="form">
<div class="form-group">
<label class="sr-only" for="exampleInputEmail2">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email">
</div>
</form>
<br/>
<!-- 水平表單,分配格數(shù),總共12格 縱向排列-->
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-md-2 control-label" for="exampleInputEmail">Email address</label>
<div class="col-md-10">
<input type="email" class="form-control" id="exampleInputEmail" placeholder="Email">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="exampleInputEmail3">Password</label>
<div class="col-md-10">
<input type="password" class="form-control" id="exampleInputEmail3" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<div class="checkbox">
<label><input type="checkbox">Remember me</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="submit" class="btn btn-default">Sign in</button>
</div>
</div>
</form>
<script src="http://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.1/js/npm.js"></script>
</body>
</html>
效果圖:

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
您可能感興趣的文章:
- Bootstrap導(dǎo)航中表單簡(jiǎn)單實(shí)現(xiàn)代碼
- 基于Bootstrap+jQuery.validate實(shí)現(xiàn)Form表單驗(yàn)證
- JS組件Form表單驗(yàn)證神器BootstrapValidator
- Bootstrap實(shí)現(xiàn)登錄校驗(yàn)表單(帶驗(yàn)證碼)
- 全面解析Bootstrap表單使用方法(表單按鈕)
- 詳解Bootstrap創(chuàng)建表單的三種格式(一)
- 全面解析Bootstrap表單使用方法(表單樣式)
- 實(shí)用又漂亮的BootstrapValidator表單驗(yàn)證插件
- 基于bootstrap插件實(shí)現(xiàn)autocomplete自動(dòng)完成表單
- 基于jQuery.validate及Bootstrap的tooltip開(kāi)發(fā)氣泡樣式的表單校驗(yàn)組件思路詳解
相關(guān)文章
Javascript中3個(gè)需要注意的運(yùn)算符
這篇文章主要介紹了Javascript中3個(gè)需要注意的運(yùn)算符,這3個(gè)運(yùn)算符的使用有很多需要注意的地方和有意思的地方,需要的朋友可以參考下2015-04-04
無(wú)縫滾動(dòng)改進(jìn)版支持上下左右滾動(dòng)(封裝成函數(shù))
無(wú)縫滾動(dòng)改進(jìn)版,封裝成函數(shù),同時(shí)支持上下左右無(wú)縫滾動(dòng)。2012-12-12
uniapp自定義網(wǎng)絡(luò)檢測(cè)組件項(xiàng)目實(shí)戰(zhàn)總結(jié)分析
這篇文章主要為大家介紹了uniapp自定義網(wǎng)絡(luò)檢測(cè)組件項(xiàng)目實(shí)戰(zhàn)總結(jié)分析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-09-09
使用layui監(jiān)聽(tīng)器監(jiān)聽(tīng)select下拉框,事件綁定不成功的解決方法
今天小編就為大家分享一篇使用layui監(jiān)聽(tīng)器監(jiān)聽(tīng)select下拉框,事件綁定不成功的解決方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2019-09-09

