Foundation - 基本提示資訊



描述

它用於透過使用 .callout 類來放置內部內容。

示例

以下示例說明了在 Foundation 中使用 basic callout 的方法 −

<!doctype html>
   <head>
      <meta charset = "utf-8" />
      <meta http-equiv = "x-ua-compatible" content = "ie = edge" />
      <meta name = "viewport" content = "width = device-width, initial-scale = 1.0" />

      <title>Basic Callout</title>
      
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.1/dist/css/foundation.min.css" crossorigin="anonymous">

      <!-- Compressed JavaScript -->
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.1/dist/js/foundation.min.js" crossorigin="anonymous"></script>
   </head>

   <body>
      <h2>Basic Callout Example</h2>

      <div class = "callout">
         <h5>This is basic callout</h5>
         <a href = "#">Foundation is a responsive front-end framework.</a>
      </div>
   </body>
</html>

輸出

讓我們執行以下步驟,瞭解上面給出的程式碼如何運作 −

  • 儲存上面給出的 html 程式碼 basic_callout.html 檔案。

  • 在瀏覽器中開啟此 HTML 檔案,會顯示如以下所示的輸出。

foundation_containers.htm
廣告
© . All rights reserved.