使用.alert-link实用程序类可在任何警报中获取匹配的彩色链接。
您可以尝试运行以下代码以使用Bootstrap获取警报中的链接。让我们为成功和信息设置它-
<!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-success"> <a href = "#" class = "alert-link">Success! Well done its submitted.</a> </div> <div class = "alert alert-info"> <a href = "#" class = "alert-link">Information!</a> </div> </body> </html>