bootstrap表单
程序员文章站
2022-03-04 17:22:22
...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>bootstrap form</title>
<link rel="stylesheet" href="../bootstrap-3.3.7/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="../bootstrap-3.3.7/plugin/bootstrap-table/bootstrap-table.min.css" />
<script src="../assets/js/jquery-2.1.4.min.js"></script>
<script src="../bootstrap-3.3.7/dist/js/bootstrap.min.js"></script>
<script src="../bootstrap-3.3.7/plugin/bootstrap-table/bootstrap-table.min.js"></script>
<script src="../bootstrap-3.3.7/plugin/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
</head>
<body>
<div class="container">
<div class="row" >
<div class="col-xs-6" style="background-color: #dedef8; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
<form role="form" class="form-vertical">
<div class="form-group" >
<label for="name">名称</label>
<input type="text" class="form-control" id="name" placeholder="请输入名称">
</div>
<div class="form-group">
<label for="age">年龄</label>
<input type="text" class="form-control" id="age" placeholder="请输入年龄">
</div>
<div class="form-group">
<label for="sex">性别</label>
<div class="checkbox-inline">
<label><input type="checkbox" name="sex" value="1">男</label>
</div>
<div class="checkbox-inline">
<label><input type="checkbox" name="sex" value="2">女</label>
</div>
</div>
<div class="form-group">
<div class="radio">
<label>
<input type="radio" name="optionsRadios" value="option2" checked> 女
</label>
</div>
</div>
<div class="form-group">
<label for="remark">备注</label>
<textarea class="form-control" id="remark" placeholder="请输入备注" rows="3"></textarea>
</div>
<div class="form-group">
<span class="help-block">
提醒,如果你没有什么,就不要输入了。
</span>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title>bootstrap form</title>
<link rel="stylesheet" href="../bootstrap-3.3.7/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="../bootstrap-3.3.7/plugin/bootstrap-table/bootstrap-table.min.css" />
<script src="../assets/js/jquery-2.1.4.min.js"></script>
<script src="../bootstrap-3.3.7/dist/js/bootstrap.min.js"></script>
<script src="../bootstrap-3.3.7/plugin/bootstrap-table/bootstrap-table.min.js"></script>
<script src="../bootstrap-3.3.7/plugin/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
</head>
<body>
<div class="container">
<div class="row" >
<div class="col-xs-6" style="background-color: #dedef8; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
<form role="form" class="form-vertical">
<div class="form-group" >
<label for="name">名称</label>
<input type="text" class="form-control" id="name" placeholder="请输入名称">
</div>
<div class="form-group">
<label for="age">年龄</label>
<input type="text" class="form-control" id="age" placeholder="请输入年龄">
</div>
<div class="form-group">
<label for="sex">性别</label>
<div class="checkbox-inline">
<label><input type="checkbox" name="sex" value="1">男</label>
</div>
<div class="checkbox-inline">
<label><input type="checkbox" name="sex" value="2">女</label>
</div>
</div>
<div class="form-group">
<div class="radio">
<label>
<input type="radio" name="optionsRadios" value="option2" checked> 女
</label>
</div>
</div>
<div class="form-group">
<label for="remark">备注</label>
<textarea class="form-control" id="remark" placeholder="请输入备注" rows="3"></textarea>
</div>
<div class="form-group">
<span class="help-block">
提醒,如果你没有什么,就不要输入了。
</span>
</div>
</form>
</div>
</div>
</div>
</body>
</html>