使用 Bootstrap 添加红色标签

bootstrapweb developmentcss framework

在 Bootstrap 中使用 .label-danger 类添加红色标签。

您可以尝试运行以下代码来实现 .label-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 = "container">
         <p>If you find any issues, click below</p>
         <span class = "label label-danger">Danger</span>
      </div>
   </body>
</html>

相关文章