bootstrap20-水平表单
2017-02-07 15:56
344 查看
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>水平表单</title>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<form action="" role="form" class="form-horizontal">
<div class="form-group">
<label for="firstname" class="col-sm-2 control-label">名称</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="firstname" placeholder="请输入名称">
</div>
</div>
<div class="form-group">
<label for="lastname" class="col-sm-2 control-label">姓</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="lastname" placeholder="请输入姓">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label for="">
<input type="checkbox">
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">登录</button>
</div>
</div>
</form>
</div>
<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>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>水平表单</title>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<form action="" role="form" class="form-horizontal">
<div class="form-group">
<label for="firstname" class="col-sm-2 control-label">名称</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="firstname" placeholder="请输入名称">
</div>
</div>
<div class="form-group">
<label for="lastname" class="col-sm-2 control-label">姓</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="lastname" placeholder="请输入姓">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label for="">
<input type="checkbox">
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">登录</button>
</div>
</div>
</form>
</div>
<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>
</body>
</html>
相关文章推荐
- bootstrap-内联表单 水平(横向)表单 响应式图片 辅助类 [转]
- Bootstrap实现水平排列的表单
- bootstrap为水平排列的表单和内联表单设置可选的图标
- Bootstrap中水平排列的表单form-inline
- Bootstrap表单(基本表单、内联表单、水平表单)
- bootstrap-内联表单 水平(横向)表单 响应式图片 辅助类
- bootstrap 水平排列表单
- Bootstrap关于表单(二):水平表单
- BootStrap 表单控件之单选按钮水平排列
- Bootstrap实现水平排列的表单
- Bootstrap3 表单-水平排列的表单
- Bootstrap水平表单
- Bootstrap3 表单-水平排列的表单组的尺寸
- bootstrap水平表单
- Bootstrap3 表单-水平排列的表单
- 关于bootstrap--表单(水平表单)
- bootstrap-为水平排列的表单和内联表单设置可选的图标
- Bootstrap系列 -- 12. 水平表单
- bootstrap-表单控件——单选按钮水平排列
- bootstrap 水平表单