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 () {
                    }
                });

 

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-05-19
  • 2021-09-26
  • 2022-02-09
  • 2022-01-01
相关资源
相似解决方案