layer.load底部添加自定义文字(文字居中效果)
var index = layer.load(2, {
shade: [0.3, '#000'],
success: function (layero) {
layero.find('.layui-layer-content').after('<div class="layer-load">加载中...</div>');
layero.find('.layer-load').css({
transform: 'translateX(-50%) translateY(10px)',
position: 'absolute',
width: 'max-content',
left: '50%'
})
}
});
本文来自博客园,作者:吴知木,转载请注明原文链接:https://www.cnblogs.com/zh1q1/p/17824024.html