使用Bootstrap中的alert-link类来获取Bootstrap中的链接。
您可以尝试运行以下代码以在Bootstrap中实现alert-link类
<!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"> <a href = "#" class = "alert-link">Error!</a> </div> </body> </html>