关闭 Bootstrap 类


使用通用的关闭图标来关闭内容(例如模型和警报)。使用类 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>

更新日期:12-6月-2020

192 次浏览

开启你的事业

完成课程即可获得认证

开始吧
广告