设置Layer模态框的 z-index

$.get(url, {}, function(data){
        layui.use(['layer'],function () {
            var layer = layui.layer,$=layui.$;
            layer.open({
                type:1,//类型
                area:['1400px','700px'],//定义宽和高
                title:'查看详细信息',//题目
                shadeClose:true,//点击遮罩层关闭
                content: data,//打开的内容
                zIndex:1 //层优先级
            });
        })
    });

1

猜你喜欢

转载自www.cnblogs.com/Skate0rDie/p/10857186.html