随笔分类 - layui
摘要:{ field: "number", title: "序号", width: "6%", align: "left", templet: function(data) { return data.LAY_INDEX; }, }
阅读全文
摘要:1、css 设置内容自动换行 .layui-table-cell{ overflow:visible; text-overflow:inherit; white-space:normal; height: 60px;/*在这里设置行高没用*/ } 2、设置行高 done: function() {
阅读全文
摘要:layui checkbox扩展插件: 一、新建 checkbox.css 样式文件 .checkBox .block{float:left; margin:5px;padding:6px 6px;width:80px;height:18px;text-align:center; border:1p
阅读全文
摘要:步骤:1)先获取区域(县、镇)json数据 ;2)使用echarts 绘制地图; 先上一波效果图(昆明市东川区) 一、获取区域json数据 1、下载工具“水经微图”, 2、下载东川区,以及东川区各个镇的kml文件 选择影像——50M以下 注意:要下载,东川区,东川区下的每个镇; 3、打开网站( ht
阅读全文
摘要:$(".layui-table-total div").attr('style','text-overflow:clip'); //合并合计行单元格 $(".layui-table-total td").attr('style','border-left:none;border-right:none
阅读全文
摘要:table.render({ elem: '#tbdata', method: 'post', data: jsonData, height: temphei, limit: 20, limits: [10, 20, 30, 50, 100, 300, 500], id: "tbdata", too
阅读全文
摘要:laydate.render({ elem: "#jhsj", format: 'yyyy-MM', type: 'month', //显示月份 year 显示到年 max : "new Date()" //最大时间为系统当前时间 });
阅读全文
摘要:<table class="layui-table" lay-filter="demo"> <colgroup> <%--设置每列的宽度--%> <col width="108px"> <col width="10%"> <col width="22%"> <col width="100px"> <
阅读全文
摘要:layer.confirm('数据已存在,是否继续', { offset: '200px' , cancel: function (index, layero) { console.log('点击X按钮'); layer.close(index); } }, function (index) { c
阅读全文
摘要:form.on('checkbox(filter)', function(data){ console.log(data.elem); //得到checkbox原始DOM对象 console.log(data.elem.checked); //是否被选中,true或者false console.lo
阅读全文
摘要:/*设置不可编辑时字体颜色*/ .layui-disabled, .layui-disabled:hover { color: #101010 !important; background-color: #eee; } /*设置表格单元格线样式*/ .layui-table td, .layui-t
阅读全文
摘要:1、layui-textarea 赋值总是居中 问题 需要 放在同一行 <textarea class="layui-textarea" style="text-align: left"></textarea> 2、按钮 需要放type="button" 3、position:设置fixed 无效时
阅读全文
摘要:添加: var element = layui.element; //Tab的切换功能,切换事件监听等,需要依赖element模块
阅读全文
摘要:方法一(推荐): var tableInit = table.render({ elem: '#tbtxrz' , method: 'post' , data: jsonData , height: "auto" , id: "tbtxrz" , text: {none: '暂无相关数据'} , t
阅读全文
摘要:var layer = layui.layer, form = layui.form, table = layui.table; var $ = layui.$; /*select gysmc,zyzw ,xm ,sjhm ,bgshm ,emilyx , zgsrgzwsj ,zggsgl ,cast(gysxxid...
阅读全文
摘要:效果: 原文地址:https://www.cnblogs.com/zjc2018/p/10171191.html 刚学layui不是很会用tab标签,非常感谢这位大神,可以直接用的 个人笔记
阅读全文
摘要:var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); window.parent.location.reload();//刷新父页面
阅读全文