<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>bootstrap第二天第二节</title>
<meta charset="UTF-8">
<!--移动设备优先-->
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet" />
<title>bootstrap入门</title>
<script src="js/jquery-1.6.js"></script>
<script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<body style="padding: 50px; background-color:#9ACFEA ;">
<div class="container" style="padding: 50px; background-color:white;">
<form class="form-horizontal">
<div class="form-group">
<label class="col-md-2 control-label" for="username">用户名:</label>
<div class="col-md-10">
<input type="text" id="username" placeholder="请输入用户名">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">密 码: </label>
<div class="col-md-10">
<input type="password" id="password" placeholder="请输入密码" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">上传图片:</label>
<div class="col-md-10">
<input type="file" id="image" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">兴趣爱好:</label>
<div class="col-md-10">
<label class="checkbox-inline"><input type="checkbox" value="运动" />运动</label>
<label class="checkbox-inline"><input type="checkbox" value="看书" />看书</label>
<label class="checkbox-inline"><input type="checkbox" value="听音乐" />听音乐</label>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">学历:</label>
<div class="col-md-10">
<label class="radio-inline"><input type="radio">高中</label>
<label class="radio-inline"><input type="radio">本科</label>
<label class="radio-inline"><input type="radio">大专</label>
<label class="radio-inline"><input type="radio">研究生</label>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">个人简介:</label>
<div class="col-md-10">
<textarea class="form-control" rows="5" placeholder="请输入信息"></textarea>
</div>
</div>
<button class="col-lg-offset-6 btn btn-danger " type="button">提交表单</button>
</form>
</div>
</body>
</html>
表单提交(利用栅格系统)
最新推荐文章于 2024-06-18 13:37:53 发布