如何为标题添加课程?

时间:2017-11-28 09:55:46

标签: javascript class

function showPromptMessage() {
    swal({
        title: "Describe your edit",
        type: "input",
        showCancelButton: true,
        closeOnConfirm: false,
        animation: "slide-from-top",
        inputPlaceholder: "Write something"
    }, function (inputValue) {
        if (inputValue === false) return false;
        if (inputValue === "") {
            swal.showInputError("You need to write something!"); return false
        }
        swal("Saved successfully");
    });
}

1 个答案:

答案 0 :(得分:0)

添加到您的css:

h2.swal2-title{
   color: blue; 
   /*Whatever you need*/
}

有关详细信息,请访问:https://limonte.github.io/sweetalert2/