layer.open自定义弹出位置

fixed:false,设置top才有效,待测试。

 

                var img = "<img src=\"/_temp/qrcodenet/m/book/book20754.png\" alt=\"test\" style=\"padding:13px;\" />";
                layer.open({
                    type: 1,
                    title: "test",
                    closeBtn: 1,
                    area: ['420px', '200px'],
                    scrollbar: false,
                    //skin: 'layui-layer-nobg',
                    //skin: 'layui-layer-rim',
                    skin: 'layui-layer-rim my-layer1',
                    shadeClose: true,
                    content: img,
                    fixed:false,
                    top:10,
                    end: function () {
                    }
                });

猜你喜欢

转载自www.cnblogs.com/hofmann/p/11833373.html