bootstrap常用
1.珊格清除浮動
<div class="row">
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sol-xs-6 .col-sm-3ol-xs-6 .col-sm-3ol-xs-6 .col-sm-3ol-xs-6 .col-sm-3
m-3</div>
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
<!-- Add the extra clearfix for only the required viewport -->
<div class="clearfix visible-xs-block"></div>
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
<div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
</div>
2.字型顏色減淡
<p class="help-block">請上傳檔案</p>
3.引用樣式,左側線
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
</blockquote>
4.幫助文字
<span id="helpBlock" class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>
5.字型顏色+背景顏色
<p class="alert-success">確認成功</p>
<p class="alert-danger">確認成功</p>
<p class="alert-info">確認成功</p>
<p class="alert-warning">確認成功</p>
<p class="bg-primary">確認成功</p>
<p class="bg-success">確認成功</p>
<p class="bg-info">確認成功</p>
<p class="bg-warning">確認成功</p>
<p class="bg-danger">確認成功</p>
<p class="text-muted">顯示樣式</p>
<p class="text-primary">顯示樣式</p>
<p class="text-success">顯示樣式</p>
<p class="text-info">顯示樣式</p>
<p class="text-warning">顯示樣式</p>
<p class="text-danger">顯示樣式</p>
6.快速浮動
div class="pull-left">...</div>
<div class="pull-right">...</div>
7.居中
<div class="center-block" style="background-color: red;width: 500px;">adsfadsf</div>
<div class="center-block">...</div>
8特殊符號:
<ul class="pagination pagination-sm"> <li><a href="#">«</a></li> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">»</a></li> </ul>
結果如下所示:
<ul class="pager"> <li class="previous"><a href="#">← Older</a></li> <li class="next"><a href="#">Newer →</a></li> </ul>
結果如下所示:
相關文章
- bootstrap框架基礎和常用元件boot框架元件
- bootstrap2.3.2常用標籤的使用boot
- 【BootStrap】--前端利器BootStrapboot前端
- [開發教程]第10講:Bootstrap常用標籤與樣式boot
- Bootstrapboot
- Bootstrap++:bootstrap-select 使用boot
- bootstrap36-Bootstrap下拉選單boot
- Bootstrap系列 -- 1. 如何使用Bootstrapboot
- bootstrap39-Bootstrap下拉選單dropdownboot
- bootstrap學習筆記 Bootstrap 列表組boot筆記
- Bootstrap - viewportbootView
- bootstrap – formbootORM
- Bootstrap框架boot框架
- bootstrap 警告boot
- bootstrap外掛學習-bootstrap.modal.jsbootJS
- jQuery UI Bootstrap:在jQuery UI上整合BootstrapjQueryUIboot
- Bootstrap檔案上傳元件應用:bootstrap fileinputboot元件
- Web 開源 CSS 框架 Bootstrap 文件、Bootstrap 下載WebCSS框架boot
- Bootstrap 簡介boot
- Bootstrap雙列表boot
- BootStrap selectpickerboot
- BootStrap小結boot
- Bootstrap Mega Menuboot
- Bootstrap框架-----排版boot框架
- Bootstrap初學boot
- Bootstrap元件 - Wellboot元件
- bootstrap1boot
- Bootstrap 按鈕boot
- 瞭解BootStrapboot
- bootstrap含義boot
- BootStrap24boot
- 基於Bootstrap的標籤頁元件bootstrap-tabboot元件
- Bootstrap3外掛系列:bootstrap-select2boot
- bootstrap49-Bootstrap分割的按鈕下拉選單boot
- Bootstrap for MVC:Html.Bootstrap().TextBoxFor(model=>model.Name)bootMVCHTML
- bootstrap datepicker 在bootstrap modal中不顯示問題boot
- 基於Bootstrap的後臺管理皮膚:Bootstrap Metro Dashboardboot
- Bootstrap 排版介紹boot