關閉 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 次瀏覽

開啟你的事業

完成課程即可獲得認證

開始吧
廣告
© . All rights reserved.