Layerui 弹出层的位置设置


距顶 offset: '300px'

例1: layer.msg("请先选择项!", { offset: '300px' });
例2: layer.confirm("确定删除吗", {
                    btn: ['确认', '取消'],
                    offset: '300px'
                    
                }, function (index) {
                    layer.close(index);
                    $.post("feedbacklist.aspx?cmd=del", { "idlist": idlist }, function (resp) {
                        if (resp.res == 1) {
                            window.location.href = location.href; //刷新当前页
                            parent.layer.msg(resp.msg);
                        }
                        layer.msg(resp.msg);

                    }, "json");
                }, function (index) {
                    layer.close(index);
                });


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM