样式通过关键字class
来指定不同的效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
</style>
<link rel="stylesheet" href="dist/css/bootstrap.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<table border="1" class="table table-striped table-hover table-bordered">
<tr>
<th>序号</th>
<th>姓名</th>
<th>年龄</th>
<th>部门</th>
</tr>
<tr class="success">
<td>1</td>
<td>张三</td>
<td>23</td>
<td>销售</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>23</td>
<td>销售</td>
</tr>
<tr class="danger">
<td>3</td>
<td>王五</td>
<td>23</td>
<td>销售</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<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>
<hr>
<form action="">
<div class="form-group">
<label for="user">用户名</label>
<input type="text" class="form-control" id="user">
</div>
<div class="form-group">
<label for="pwd">密码</label>
<input type="password" class="form-control" id="pwd">
</div>
<div class="form-group">
<div class="row">
<div class="col-md-6">
<select class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 pull-right"><input type="submit" class="form-control"></div>
</div>
</form>
</div>
</div>
<div class="col-md-8 col-md-offset-2">
<div class="row">
<h3>按钮</h3>
<button class="btn btn-danger btn-sm" disabled="disabled">button</button>
<input class="btn btn-warning btn-lg" type="button" value="button">
<span class="glyphicon glyphicon-user"></span>
<span class="glyphicon glyphicon-shopping-cart"></span>
</div>
</div>
</div>
</body>
</html>