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