Bootstrap中的alert-danger类用于设置危险动作。
您可以尝试运行以下代码以在Bootstrap中实现alert-danger类-
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "alert alert-danger">This is danger action!</div> </body> </html>