- 基礎通用
- 基礎 - 全域性樣式
- 基礎 - Sass
- 基礎 - JavaScript
- 基礎 - JavaScript 工具
- 基礎 - 媒體查詢
- 基礎 - 網格
- 基礎 - 靈活網格
- 基礎 - 表單
- 基礎 - 可見性類
- 基礎 - 基本排版
- 基礎 - 排版幫助程式
- 基礎 - 基本控制元件
- 基礎 - 導航
- 基礎 - 容器
- 基礎 - 媒體
- 基礎 - 外掛
- 基礎 SASS
- 基礎 - Sass 函式
- 基礎 - Sass Mixins
- 基礎庫
- 基礎 - Motion UI
基礎 - 標註
描述
標註是一個元素,它可用於放置內部內容。
示例
以下示例演示了在 Foundation 中使用標註的方式 −
<!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>Callout</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.1/dist/css/foundation.min.css" crossorigin="anonymous">
</head>
<body>
<h2>Callout Example</h2>
<div class = "callout">
<h5>callout.</h5>
<a href = "#">Foundation is a responsive front-end framework.</a>
</div>
<div class = "callout secondary">
<h5>secondary callout</h5>
<a href = "#">Foundation is a responsive front-end framework.</a>
</div>
<div class = "callout success">
<h5>success callout</h5>
<a href = "#">Foundation is a responsive front-end framework.</a>
</div>
<div class = "callout warning">
<h5>warning callout</h5>
<a href = "#">Foundation is a responsive front-end framework.</a>
</div>
<div class = "callout alert">
<h5>alert callout</h5>
<a href = "#">Foundation is a responsive front-end framework.</a>
</div>
</body>
</html>
輸出
讓我們執行以下步驟,看看上面給出的程式碼如何工作 −
將上面給出的 html 程式碼儲存為callout.html 檔案。
在此 HTML 檔案中,一個輸出顯示如下。
foundation_kitchen_sink.htm
廣告