如何更改 sweetalert 中的字体系列?谢谢你
swal({
title: "Are you sure?",
text: "Your will not be able to recover this imaginary file!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
cancelButtonText: "No, cancel plx!",
closeOnConfirm: false,
closeOnCancel: false
},
最佳答案
列出了配置选项here .它们似乎不包括更改字体的选项。
但是,SweetAlert 弹出窗口中涉及的所有元素都有 SweetAlert 特定的类,因此您应该能够通过 CSS 设置字体。 SweetAlert 文档中的Theming 下列出了一些关键类和示例。 .
关于javascript - 如何更改sweetalert的字体系列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57079469/