1. Bootstrap 3 响应式上传图片 bootstrap-fileinput

项目地址: https://github.com/kartik-v/bootstrap-fileinput

Usage

Step 1: Load the following assets in your header.

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<link href="path/to/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="path/to/js/fileinput.min.js"></script>
<!-- bootstrap.js below is only needed if you wish to the feature of viewing detailsof text file preview via modal dialog -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
<!-- optionally if you need translation for your language then include locale file as mentioned below -->
<script src="path/to/js/fileinput_locale_<lang>.js"></script>

If you noticed, you need to load the jquery.min.js and bootstrap.min.css in addition to the fileinput.min.css and fileinput.min.js. The locale file fileinput_locale_<lang>.js can be optionally included for translating for your language if needed.

Step 2: Initialize the plugin on your page. For example,

// initialize with defaults
$("#input-id").fileinput();// with plugin options
$("#input-id").fileinput({'showUpload':false, 'previewFileType':'any'});

The #input-id is the identifier for the input (e.g. type = file) on your page, which is hidden automatically by the plugin.

Alternatively, you can directly call the plugin options by setting data attributes to your input field.

<input id="input-id" type="file" class="file" data-preview-file-type="text" >

更多选项查看:https://github.com/kartik-v/bootstrap-fileinput#plugin-options

官网:http://plugins.krajee.com/file-input

2. Bootstrap 3 响应式时间拾取器 Date/Time Picker

a)  插件一 http://tarruda.github.io/bootstrap-datetimepicker/

<div class="well"><div id="datetimepicker1" class="input-append date"><input data-format="dd/MM/yyyy hh:mm:ss" type="text"></input><span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i></span></div>
</div>
<script type="text/javascript">$(function() {$('#datetimepicker1').datetimepicker({language: 'pt-BR'});});
</script>
<div class="well"><div id="datetimepicker2" class="input-append"><input data-format="MM/dd/yyyy HH:mm:ss PP" type="text"></input><span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i></span></div>
</div>
<script type="text/javascript">$(function() {$('#datetimepicker2').datetimepicker({language: 'en',pick12HourFormat: true});});
</script>

b)  插件二 https://eonasdan.github.io/bootstrap-datetimepicker/

<div class="container"><div class="row"><div class='col-sm-6'><div class="form-group"><div class='input-group date' id='datetimepicker1'><input type='text' class="form-control" /><span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span></div></div></div><script type="text/javascript">$(function () {$('#datetimepicker1').datetimepicker();});</script></div>
</div>
<div class="container"><div class="row"><div class='col-sm-6'><div class="form-group"><div class='input-group date' id='datetimepicker2'><input type='text' class="form-control" /><span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span></div></div></div><script type="text/javascript">$(function () {$('#datetimepicker2').datetimepicker({locale: 'ru'});});</script></div>
</div>

3. Bootstrap 3 响应式表单认证 Bootstrap 3 Validator

官网:http://1000hz.github.io/bootstrap-validator/

项目地址:https://github.com/1000hz/bootstrap-validator

<form data-toggle="validator" role="form"><div class="form-group"><label for="inputName" class="control-label">Name</label><input type="text" class="form-control" id="inputName" placeholder="Cina Saffary" required></div><div class="form-group"><label for="inputTwitter" class="control-label">Twitter</label><div class="input-group"><span class="input-group-addon">@</span><input type="text" pattern="^([_A-z0-9]){3,}$" maxlength="20" class="form-control" id="inputTwitter" placeholder="1000hz" required></div><span class="help-block with-errors">Up to 20 letters, numbers and underscores</span></div><div class="form-group"><label for="inputEmail" class="control-label">Email</label><input type="email" class="form-control" id="inputEmail" placeholder="Email" data-error="Bruh, that email address is invalid" required><div class="help-block with-errors"></div></div><div class="form-group"><label for="inputPassword" class="control-label">Password</label><div class="form-group col-sm-6"><input type="password" data-minlength="6" class="form-control" id="inputPassword" placeholder="Password" required><span class="help-block">Minimum of 6 characters</span></div><div class="form-group col-sm-6"><input type="password" class="form-control" id="inputPasswordConfirm" data-match="#inputPassword" data-match-error="Whoops, these don't match" placeholder="Confirm" required><div class="help-block with-errors"></div></div></div></div><div class="form-group"><div class="radio"><label><input type="radio" name="underwear" required>Boxers</label></div><div class="radio"><label><input type="radio" name="underwear" required>Briefs</label></div></div><div class="form-group"><div class="checkbox"><label><input type="checkbox" id="terms" data-error="Before you wreck yourself" required>Check yourself</label><div class="help-block with-errors"></div></div></div><div class="form-group"><button type="submit" class="btn btn-primary">Submit</button></div>
</form>

下载附件:

bootstrap-validator-master

bootstrap-datetimepicker-master

bootstrap-datetimepicker-0.0.11

bootstrap-fileinput-master

justcode.ikeepstudying.com

Bootstrap 3 响应式上传图片,时间拾取器和表单认证 Fileinput, Date/Time Pickr, Validator...相关推荐

  1. html简单垂直时间轴,简单的响应式垂直时间轴效果

    这是一款简单的响应式垂直时间轴效果.该垂直时间轴效果使用bootstrap网格进行布局,在小屏幕设备上会将所有的时间节点占满整行垂直排列. 使用方法 在页面中引入bootstrap.min.css文件 ...

  2. HTML5+CSS3实现的响应式垂直时间轴

    网页时间轴一般用于展示以时间为主线的事件,如企业网站常见的公司发展历程等.本文将给大家介绍一款基于HTML5和CSS3的漂亮的垂直时间轴,它可以响应页面布局,适用于HTML5开发的PC和移动手机WEB ...

  3. html发展时间轴纵向插件,jquery响应式垂直时间轴插件vertical-timeline

    插件描述:jquery-vertical-timeline是一款简单实用的jQuery响应式垂直时间轴插件. jquery-vertical-timeline 是一款简单实用的jQuery响应式垂直时 ...

  4. Metronic – 超赞!基于 Bootstrap 的响应式后台管理模板

    Metronic 是一套精美的响应式后台管理模板,基于强大的 Twitter Bootstrap 框架实现.Metronic 拥有简洁优雅的 Metro UI 风格界面,6 种颜色可选,76 个模板页 ...

  5. Bootstrap嵌入响应式视频(可无障碍浏览)的方法

    Bootstrap嵌入响应式视频(可无障碍浏览)的方法  2016-01-11 10:51 网页设计   标签:Bootstrap 代码   5845    发表评论 昨晚,我测试了下Bootstra ...

  6. 响应式短视频直播带货营销单页网站模板易优eyoucms

    响应式短视频直播带货营销单页网站模板易优eyoucms 随着互联网和移动设备的普及,短视频直播带货已经成为了一种热门的营销方式.在这个趋势下,易优eyoucms推出了一款响应式短视频直播带货营销单页网 ...

  7. shiro表单认证(系统默认的form认证器)

    原文地址:http://blog.csdn.net/zcl_love_wx 注意:此文是基于springMVC框架的,所以关于springMVC的配置这里不说,后面有时间专门写一个shiro整合spr ...

  8. date格式化输出 24小时 java_java - 将日期时间转换为24小时表单

    java - 将日期时间转换为24小时表单 我从服务器获得的时间就像Jul 27, 2011 8:35:29 AM. 我想将其转换为2011-07-27 08:35:29. 我还希望转换时间为24小时 ...

  9. Bootstrap实战 - 响应式布局

    一.介绍 响应式布局就是一个网站能够兼容多个终端,而不是为每个终端做一个特定的版本.这个概念是为解决移动互联网浏览而诞生的. 导航栏与轮播在大部分网站的头部占很高的比重,特别是导航栏,扮演着网站地图的 ...

最新文章

  1. python 学术_Python
  2. 一个阿里P7的自白:一念之差,我差点转了产品
  3. C 语言中的 feof()函数
  4. DNS隧道工具使用 不过其网络传输速度限制较大
  5. 消费扶贫谋定中国农民丰收节交易会 洛水山肴乡村振兴
  6. Android 通过腾讯WebService API获取 地址经纬度
  7. spark基础之Spark SQL和Hive的集成以及ThriftServer配置
  8. apache-tomcat集成,转帖
  9. javascript date utc
  10. Javascript学习
  11. 目录大全:RDMA、IB卡、IB驱动下载、ubuntu16.04安装 IB驱动、ib_read/write_bw 测试RDMA读写....
  12. 进程间的通信方式(六种)
  13. 数据分析师必备的python包
  14. 红黑树和二叉树有什么区别?
  15. 写一个PE的壳_Part 4:修复对ASLR支持+lief构建新PE
  16. 颐 山雷颐 艮上震下
  17. 赤壁之战的Google Map
  18. 计算机显示usb无法识别,计算机不断弹出无法识别的USB设备的解决方案
  19. LL(1)语法分析器
  20. 一级域名和二级域名的差异

热门文章

  1. 合唱队形(洛谷-P1091)
  2. 金明的预算方案(洛谷-P1064)
  3. 城市公交网建设问题(信息学奥赛一本通-T1348)
  4. 学术会议墙报_中国化学会第十四届全国电分析化学学术会议在南京顺利召开
  5. pytorch4:简单的线性回归
  6. 默认参数,命名参数,可变参数
  7. jquery-选择器
  8. 两款高大尚广告GO跳转页PHP源码
  9. my batis plus 小数没有0_大黄蜂3号Plus,妈咪保贝的强劲对手!
  10. WordPress 简洁好看hankin透明主题