layerui如何設置顯示的位置?


轉自:http://www.layui.com/doc/modules/layer.html#offset

layer.open({
type: 1,//默認:0 (0表示信息框,1表示頁面層,2表示加載層)
title: "選擇單位",
offset: 't',//頂部
fixed: false,
resize: false,
content: $("#setAlias"),
area: ['80%', '36%'],
btn: ['確定', '取消']
,yes: function(index){
console.dir(index);
//do sonmething
layer.close(index);//關閉

}
});


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM