Bootstarp基本样式
1 表单
- form-group -> 该表单框距离下面表单框多了一些距离
- form-control -> 将所在表单框拉长
参考链接 :
<form>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<div class="form-group">
<label for="exampleInputFile">File input</label>
<input type="file" id="exampleInputFile">
<p class="help-block">Example block-level help text here.</p>
</div>
<div class="checkbox">
<label>
<input type="checkbox"> Check me out
</label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
2.按钮
- btn btn-warning 警告
- btn btn-success 成功
- btn btn-primary 首选项
- btn btn-default 默认样式
- btn btn-default btn-lg 大按钮
- btn btn-primary btn-sm 小按钮
参考链接 :
<div class="container">
<div class="row">
<div class="col-md-4 col-lg-offset-4">
<form>
<div class="form-group">
<label>用户名</label>
<input type="text" class="form-control" placeholder="用户名">
</div>
<div class="form-group">
<label>密码</label>
<input type="password" class="form-control" placeholder="密码">
</div>
<div class="form-group">
<label>邮箱</label>
<input type="text" class="form-control" placeholder="邮箱">
</div>
<button type="submit" class="btn btn-primary btn-sm">Submit</button>
</form>
</div>
</div>
</div>
3.表格
- table-bordered 每一行对鼠标悬停状态作出响应
- table-hover 为表格和其中的每个单元格增加边框
- table-stripe 增加斑马条纹样式
<div class="container">
<div class="row">
<div class="col-md-8 col-lg-offset-2">
<table border="1" class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th>序号</th>
<th>姓名</th>
<th>年龄</th>
<th>部门</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td>1</td>
<td>高涛</td>
<td>19</td>
<td>技术部</td>
</tr>
<tr>
<td>2</td>
<td>高杰</td>
<td>20</td>
<td>销售部</td>
</tr>
<tr>
<td>3</td>
<td>张欣怡</td>
<td>21</td>
<td>托管部</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
4 .路径导航
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Library</a></li>
<li class="active">Data</li>
</ol>
呈现效果
标签:基本,Bootstarp,样式,Bootstrap,表单,table,btn From: https://www.cnblogs.com/pythonav/p/18446683