layer.load 支持文字内容

技术 置顶 精帖
0 767
peng49
peng49 2021-06-25 15:32:32
 
  1. layer.load(1, {
  2. content: '文字',
  3. shade:[0.3,'#000'],
  4. success: function (layero) {
  5. layero.find('.layui-layer-content').css({
  6. 'paddingTop': '40px',
  7. 'width': '60px',
  8. 'textAlign': 'center',
  9. 'backgroundPositionX': 'center'
  10. });
  11. }
  12. });
回帖
登录
忘记密码?