layui表格内放置图片,并点击放大的实例
我就废话不多说了,直接上代码吧!
cols:[[//表头 { field:'brand_img_url', title:'图片', sort:true, templet:function(d){ return''; } } ]]
//显示大图片 functionshow_img(t){ vart=$(t).find("img"); //页面层 layer.open({ type:1, skin:'layui-layer-rim',//加上边框 area:['80%','80%'],//宽高 shadeClose:true,//开启遮罩关闭 end:function(index,layero){ returnfalse; }, content:'
以上这篇layui表格内放置图片,并点击放大的实例就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。