TemplarAssassin 2017-10-16
form-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" type="text/css">
<!--[if lt IE 9]>
<script src="../bootstrap/js/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<h1 class="page-header">表单</h1>
<label for="username">用户名</label>
<input id="username" type="text" class="span3" placeholder="输入您的用户名">
<p class="help-block">请输入您登录时使用的用户名</p>
<label>性别</label>
<label class="radio">
<input name="gender" type="radio" value="male">男</label>
<label class="radio">
<input name="gender" type="radio" value="female">女</label>
<label class="radio">
<input name="gender" type="radio" value="other">其他</label>
<label>选择你喜欢的 CMS</label>
<label class="checkbox inline">
<input type="checkbox" value="wordpress">Wordpress</label>
<label class="checkbox inline">
<input type="checkbox" value="joomla">Joomla</label>
<label class="checkbox inline">
<input type="checkbox" value="drupal">Drupal</label>
<label>想去的地方</label>
<select multiple="multiple">
<option value="italy">意大利</option>
<option value="US">美国</option>
<option value="UK">英国</option>
</select>
<div class="input-prepend input-append">
<span class="add-on">¥</span><input type="text"><span class="add-on">.00</span>
</div>
<div class="input-append">
<input type="text"><button class="btn">搜索</button>
</div>
</div>
<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