bootstrap19-内联表单
2017-02-07 15:50
85 查看
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>内联表单</title>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<form action="" role="form" class="form-inline">
<div class="form-group">
<label for="name" class="sr-only">名称</label>
<input type="text" class="form-control" id="name" placeholder="请输入名称">
</div>
<div class="form-group">
<label for="inputfile" class="sr-only">文件输入</label>
<input type="file" id="inputfile">
<p class="help-block">这里是块级帮助文本的实例。</p>
</div>
<div class="checkbox">
<label>
<input type="checkbox">请打勾
</label>
</div>
<button type="submit" class="btn btn-default">提交</button>
</form>
</div>
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>内联表单</title>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<form action="" role="form" class="form-inline">
<div class="form-group">
<label for="name" class="sr-only">名称</label>
<input type="text" class="form-control" id="name" placeholder="请输入名称">
</div>
<div class="form-group">
<label for="inputfile" class="sr-only">文件输入</label>
<input type="file" id="inputfile">
<p class="help-block">这里是块级帮助文本的实例。</p>
</div>
<div class="checkbox">
<label>
<input type="checkbox">请打勾
</label>
</div>
<button type="submit" class="btn btn-default">提交</button>
</form>
</div>
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
相关文章推荐
- bootstrap19-内联表单
- html表单,(内联)框架,背景,颜色
- Bootstrap3 表单-内联单选和多选框
- 在ASP.NET中如何用C#.NET实现基于表单的验证
- 表单放置自定义上传组件(C#)
- Android中获取网页表单中的数据
- 正则表达式匹配form表单中所有内容的例子
- 使用Struts的Token机制解决表单的重复提交
- 关于禁止表单浏览器兼容
- HTML的表单
- 基于jquery与jquery.form.js的表单文件流提交和上传体验提升
- JavaScript 实现动态增加、删除表单域
- 【推荐】用于UI和表单设计的10款jQuery插件
- jquery表单验证扩展二
- MySQL联合查询语法内联、左联、右联、全联
- jQuery EasyUI使用教程之创建展开行详细编辑表单的CRUD应用
- selenium测试(Java)--多表单切换(十二)
- 以form表单的形式传递参数给rest接口
- jQuery完成表单验证的实例代码(纯代码)
- PHP3 入门教程HTML 表单和变量