若要创建绿色警报框,指示采取了积极行动,请使用alert-success类。
要实现警报成功类,您需要尝试运行以下代码-
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"> <script src = "https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"></script> <script src = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> </head> <body> <div class = "alert alert-success"> <p>Indicates a positive action!</p> </div> </body> </html>