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 () { } });
下边设置起作用
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, offset: '10px', //offset: ['100px', '200px'], end: function () { } });