javascript - 如何更改sweetalert的字体系列

标签 javascript jquery sweetalert

如何更改 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/

相关文章:

javascript - JIRA 问题收集器

jQuery bootstrap-datetimepicker 更改事件

Jquery MVC 4 客户端验证不起作用

javascript - ruby on Rails 中使用 sweetalert 删除方法

javascript - 日期选择器模式向下滚动页面

javascript - Google 图表在 Bootstrap 模态中显示时显示对齐错误

javascript - 用于监视主机更改的影子 dom 脚本

javascript - Django + Ajax |文件上传 |服务器不识别 Ajax 请求

javascript - 将 JQuery 上下文 $(this) 传递给另一个函数并检索上下文数据

javascript - 覆盖 javascript 确认框