通过 Bootstrap 在警报中获取链接


使用 .alert-link utility 实用程序类以获取任意警报中匹配颜色的链接。

可尝试运行以下代码以在警报中获取 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>

更新日期: 2020 年 6 月 12 日

247 次浏览

开启你的 职业生涯

完成课程认证

入门
广告
© . All rights reserved.