layer.load PC端带文字提示 居中

layer.load(2, { //icon支持传入0-2
                shade: [0.9, '#000'], //0.5透明度的灰色背景
                content: '生成中...',
                success: function (layero) {
                    layero.find('.layui-layer-content').css({
                        'padding-top': '39px',
                        'width': '70px',
                        'background-size': '32px'
                    });
                }
            });
            //字符不居中的话 修改 margin-left: -10px; 这个参数

你可能感兴趣的:(layer)