layui實現全屏彈出層。
阿新 • • 發佈:2019-01-28
實現的原始碼:
js函式:
addtype: function () { var that = this; that._data.operatetype = 0; that._data.saveobj.floorId = []; that._data.layerindex.index_2 = layer.open({ type: 1, offset: 'auto', shadeClose: true, shade: 0.1, title:[" ","height:0px;"], content: $("#view_23"), //view_23是彈出層內容部分的id。 area: ["1200px", "600px"], maxmin: true, //實現全屏彈出。 closeBtn : 1 }); layer.full(that._data.layerindex.index_2); //實現全屏彈出。 },