
bootstrap
猪脚踏浪
这个作者很懒,什么都没留下…
展开
-
实用Bootstrap树形菜单特效插件Bootstrap Tree View
实用Bootstrap树形菜单特效插件Bootstrap Tree View https://github.com/jonmiles/bootstrap-treeview原创 2016-03-03 20:59:31 · 5602 阅读 · 1 评论 -
bootstrapValidator通过js手动指定错误提示位置
// 指定错误信息位置 errorPlacement: function (error, element) { if (element.is(':checkbox')) { error.appendTo($("#checkbox-lang")); } else { error.insertAfter(element); } },原创 2017-05-21 14:40:00 · 5749 阅读 · 2 评论 -
bootstrapValidator添加到验证规则到HTML上
添加到验证规则到HTML上 Username <input type="text" class="form-control" name="username" data-bv-message="The username is not valid" required data-bv-no原创 2017-05-21 14:26:02 · 1732 阅读 · 0 评论 -
bootstrapValidator 的隐藏域验证
1. bootstrapValidator默认配置对于“隐藏域(:hidden)、禁用域(:disabled)、不可见域(:not (visible))”是不进行验证的。解决方法:$("form").bootstrapValidator({ //excluded:[":hidden",":disabled",":not(visible)"] ,//bootstrapValida原创 2017-05-21 13:44:28 · 6206 阅读 · 1 评论 -
bootstrap 修改carousel 样式
一:修改indicators和底部的间距.ol.carousel-indicators{ bottom: 0px; margin-bottom: 0px;}原创 2017-05-14 12:29:57 · 5881 阅读 · 0 评论 -
设置bootstrap modal模态框的宽度和宽度
(1)修改修改modal中的modal-dialog这个div宽度原创 2017-04-28 09:42:20 · 90960 阅读 · 1 评论 -
bootstrapValidator插件动态添加和移除校验
bootstrapValidator对动态生成的表单进行校验,需要调用方法:addField。方法:addField(field,option); field可以是表单的name也可以是jQuery对象举例$("form").bootstrapValidator("addField",$("[name='roleName']"));或$("#form").bootstr原创 2017-05-10 17:25:49 · 9727 阅读 · 0 评论 -
bootstrapValidator代码中开启验证和判断验证是否通过
//开启验证 $('#saveadmin_form').data('bootstrapValidator').validate(); //是否通过校验 if(!$('#saveadmin_form').data('bootstrapValidator').isValid()){ //没有通过校验 } else { //通过校验,可进行提交等操作}原创 2017-05-10 17:43:56 · 9799 阅读 · 3 评论 -
Bootstrap框架,在使用栅格布局的时候,在父标签中添加row类,发现引起网页出现横向滚动条的问题
查看row类的css样式内容为:.row{margin-left:15px;margin-right:15px;}因此确定就是由于这两个样式引起的。故重写row类的css样式,即.row{margin-left:0px;margin-right:0px;}至于为什么Bootstrap要将row类的左右外边距设定为负值,官网解释为,通过为.row元素设置负转载 2017-04-16 00:58:32 · 2451 阅读 · 0 评论 -
Bootstrap 滚动条
一:增加滚动条其实只要在 相关模块的 class属性中,再加上 pre-scrollable 即可。例如是在中添加pre-scrollable:二:设置overflow(1)div style=" overflow:scroll; width:400px; height:400px;”>记住宽和高一定要设置噢,否则不成的,不过在不超出时,原创 2017-04-15 22:58:34 · 46921 阅读 · 4 评论 -
Bootstrap的aria-label和aria-labelledby
aria-label正常情况下,form表单的input组件都有对应的label.当input组件获取到焦点时,屏幕阅读器会读出相应的label里的文本。如:[html] view plain copy print?> html> head> meta charset = "utf-8">转载 2017-04-10 15:54:48 · 2206 阅读 · 0 评论 -
给bootstrap-treeview增加点击事件,单击菜单也能展开和折叠
希望给Bootstrap treeView插件点击列表也能展开子节点,所以对li元素增加了onClick方法。(一)首先修改bootstrap-treeview.js源码,找到, 增加onClick方法,修改后代码。(二)实现 onClick方法function itemOnclick(target){ //找到当前节点id var nodeid = $(target)原创 2016-03-04 22:47:08 · 31991 阅读 · 12 评论 -
bootstrapValidator不触发校验
一、前言BootstrapValidator是基于bootstrap3的jquery表单验证插件,是最适合bootstrap框架的表单验证插件,在工作中用到此框架就写下自己在使用中积累的一些心得二、问题描述当按钮的类型为submit时,使用bootstrapValidator的isValid()能够使验证表单正常工作,但当button的type类型为button时,只调用boots转载 2017-04-11 02:22:09 · 4260 阅读 · 1 评论