解决layui弹出相册层,按钮会遮挡图片

layer.photos({
                    photos: {"data": [{"src": img_yt}]}
                    , tab: function (pic, layero) {
                        let photoheight = $("#layui-layer-photos").parent().height();
                        $("#layui-layer-photos").height(photoheight);
                    }
                    
                });

你可能感兴趣的:(layui,javascript)