【发布时间】:2021-11-02 02:23:00
【问题描述】:
我想更改 SweetAlert2 中的标题和文本颜色。
我的提醒:
Swal.fire({
icon: 'warning',
title: 'Attention...',
text: 'Change color of this text',
background: '#1e2122',
confirmButtonColor: '#ff6600',
confirmButtonText: 'OK',
iconColor: '#ff6600',
})
我见过这个topic,但对我不起作用。
需要使用customClass吗?
你能帮帮我吗? :)
谢谢。
【问题讨论】:
标签: javascript sweetalert sweetalert2