使用 Bootstrap 获取警报中的链接
bootstrapweb developmentcss framework更新于 2026/2/13 12:28:17
使用 .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>

