Bootstrap 静态控件
2015-11-23 11:14
459 查看
当您需要在一个水平表单内表单标签后放置纯文本时,请在 <p> 上使用 class .form-control-static。
实例:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bootstrap历练实例:静态控件</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="bootstrap-3.3.5-dist/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<form role="form" class="form-horizontal">
<div class="form-group">
<label for="email" class="control-label col-sm-2">Email:</label>
<div class="col-sm-10">
<p class="form-control-static">53209322@qq.com</p>
</div>
</div>
<div class="form-group">
<label for="password" class="control-label col-sm-2">密码:</label>
<div class="col-sm-10">
<input type="password" id="password" class="form-control" placeholder="Input you password" />
</div>
</div>
</form>
</div>
<script src="Css/jquery-2.1.4.js"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
</body>
</html>
实例:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bootstrap历练实例:静态控件</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="bootstrap-3.3.5-dist/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<form role="form" class="form-horizontal">
<div class="form-group">
<label for="email" class="control-label col-sm-2">Email:</label>
<div class="col-sm-10">
<p class="form-control-static">53209322@qq.com</p>
</div>
</div>
<div class="form-group">
<label for="password" class="control-label col-sm-2">密码:</label>
<div class="col-sm-10">
<input type="password" id="password" class="form-control" placeholder="Input you password" />
</div>
</div>
</form>
</div>
<script src="Css/jquery-2.1.4.js"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
</body>
</html>
相关文章推荐
- Bootstrap 模态框
- 10大的 Metro 风格的 Bootstrap 主题和模板
- Bootstrap select(选择列表)
- js日期时间选择器bootstrap
- bootstrap模态弹出框
- bootstrap模态弹出框
- Bootstrap每天必学之表格
- Bootstrap每天必学之表格
- Bootstrap每天必学之表单
- Bootstrap 响应式表格
- Bootstrap 表格2
- Bootstrap 表格
- Bootstrap 代码
- MAC bootstrap-cms安装记录
- Bootstrap 排版
- bootStrap table实现分页
- bootstrap 新手入门(三) 按钮组件
- bootstrap新手入门(二)css 全局css样式及组件
- Bootstrap 网格系统(Grid System)实例5
- Bootstrap 网格系统(Grid System)实例4