关闭 Bootstrap 类

bootstrapweb developmentcss framework更新于 2026/2/7 20:28:17

使用通用的关闭图标来关闭模型和警报等内容。使用 close 类来获取关闭图标。

您可以尝试运行以下代码来实现关闭 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>
      <p>Close Icon:
         <button type = "button" class = "close" aria-hidden = "true">
            ×
         </button>
      </p>
   </body>
</html>

相关文章