TemplarAssassin 2017-10-25
form-layout-finish.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表单排版</title>
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="../bootstrap/js/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<h1 class="page-header">表单排版</h1>
<form class="form-horizontal">
<fieldset>
<legend>用户登录</legend>
<div class="control-group">
<label class="control-label" for="username">用户名</label>
<div class="controls">
<input id="username" type="text">
<p class="help-block">请输入您登录时使用的用户名</p>
</div>
</div>
<div class="control-group">
<label class="control-label" for="password">密码</label>
<div class="controls">
<input id="password" type="password" >
<p class="help-block">请输入设置的密码</p>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary">登录</button>
</div>
</form>
<script src="../bootstrap/js/jquery-1.7.2.min.js"></script>
<script src="../bootstrap/js/bootstrap.js"></script>
</body>
</html> 向父 <form> 元素添加 role="form"。把标签和控件放在一个带有 class .form-group 的 <div> 中。这是获取最佳间距所必需的。向所有的文本元素 <input>、&l
Bootstrap 通过一些简单的 HTML 标签和扩展的类即可创建出不同样式的表单。<input type="password" class="form-control" id="PassWord&
表单中常见的元素主要包括:文本输入框、下拉选择框、单选按钮、复选按钮、文本域和按钮等。<input type="email" class="form-control" id="exampleInput
本文主要给大家介绍了bootstrap表单样式的使用知识,非常不错,一起看看吧!<input type="email" class="form-control" id="exampleInputEma