1、一些小例子如图
<!DOCTYPE html>
<html lang="en">
<head>
<title>bootstrap的表单</title>
<meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<form role="form">
<div class="form-group">
<lable for="name">用户名</lable>
<input type="text" class="form-control" id="name" placeholder="请输入用户名">
</div>
<div class="form-group">
<label for="inputfile">文件输入</label>
<input type="file" id="inputfile">
<p class="help-block">请选择文件</p>
</div>
<div class="checkbox">
<label><input type="checkbox"> 请选择 </label>
</div>
<button type="submit" class="btn btn-default">提交</button>
</form>
</div>
</body>
</html>