# Foundation 提醒框
Foundation 可以很簡單的創建一個提醒框:

提醒框可以使用 `.alert-box` 類創建, 可以添加可選的類: `.secondary`, `.success`, `.info`, `.warning` 或 `.alert`:
### 實例
```
<div data-alert class="alert-box">
? This is a default alert box.
</div>
<div data-alert class="alert-box secondary">
? This is a secondary alert box.
</div>
<div data-alert class="alert-box success">
? <strong>Success!</strong> This alert box indicates a successful or positive action.
</div>
<div data-alert class="alert-box info">
? <strong>Info!</strong> This alert box indicates a neutral informative change or action.
</div>
<div data-alert class="alert-box warning">
? <strong>Warning!</strong> This alert box indicates a warning that might need attention.
</div>
<div data-alert class="alert-box alert">
? <strong>Alert!</strong> This alert box indicates a dangerous or potentially negative action.
</div>
```
> 
> 提醒框的寬度為容器的 100%。
## 圓角提醒框
`.radius` 和 `.round` 類用于為提醒框添加圓角:
### 實例
```
<div data-alert class="alert-box success radius">
? <strong>Success!</strong> Alert box with a radius.
</div>
<div data-alert class="alert-box info round">
? <strong>Info!</strong> Alert box that is rounded.
</div>
```
## 關閉提醒框
要關閉提醒框,可以在連接或按鈕元素上添加 `class="close"` 類,并初始化 Foundation JS:
### 實例
```
<div data-alert class="alert-box">
? This is a default alert box with closing functionality.
? <a href="#" class="close">×</a>
</div>
<script>
// Initialize Foundation JS For Functionality
$(document).ready(function() {
??? $(document).foundation();
})
</script>
```
> 
> × (×) 是一個 HTML 字符實體表示一個關閉按鈕的圖標,而不是字母 "x"。
- Foundation 入門
- Foundation 5 簡介
- Foundation 起步
- Foundation 文本
- Foundation 表格
- Foundation 按鈕
- Foundation 按鈕組
- Foundation 圖標
- Foundation 標簽
- Foundation 提醒框
- Foundation 進度條
- Foundation 面板
- Foundation 圖片
- Foundation 下拉菜單
- Foundation 折疊列表
- Foundation 列表
- Foundation 選項卡
- Foundation 分頁
- Foundation 價格表
- Foundation 頂部導航欄
- Foundation 側邊欄
- Foundation 滑動導航(Off-Canvas)
- Foundation 麥哲倫(Magellan)導航
- Foundation 表單
- Foundation 輸入框尺寸
- Foundation 開關
- Foundation 滑塊
- Foundation 提示框
- Foundation 模態框
- Foundation Joyride
- Foundation 均衡器(Equalizer)
- Foundation 網格
- Foundation 網格系統
- Foundation 網格 - 水平堆疊
- Foundation 網格 - 小型設備
- Foundation 網格 - 中型設備
- Foundation 網格 - 大型設備
- Foundation 塊狀網格
- Foundation 網格實例
- Foundation 參考手冊
- Foundation 圖標參考手冊
- Foundation CSS 參考手冊
- Foundation CSS 可見性