# Foundation 開關
開關是在鼠標點擊(手指敲擊)下在 "On" 和 "Off" 狀態下切換:

切換開關使用 `<div class="switch">` 創建。 `<div>` 內添加帶有唯一 id 的 `<input type="checkbox">` , `<label>` 元素的 for 屬性需要與 `<input type="checkbox">` 的 id 相匹配:
### 實例
```
<div class="switch">
? <input id="mySwitch" type="checkbox">
? <label for="mySwitch"></label>
</div>
```
## 開關大小
使用 `.large`, `.small` 或 `.tiny` 類來設置開關大小:
### 實例
```
<div class="switch large">...</div>
<div class="switch">...</div>
<div class="switch small">...</div>
<div class="switch tiny">...</div>
```
## 圓角切換開關
使用 `.radius` 和 `.round` 類來設置圓角切換開關:
### 實例
```
<div class="switch">...</div>
<div class="switch radius">...</div>
<div class="switch round">...</div>
```
## 開關組
可以通過設置單選按鈕(radio)來設置單個選項。**注意:** 注意各個選項的 `name` 屬性必須一致 (實例中為 "myGroup" )。
### 實例
```
<div class="switch">
? <input id="mySwitch1" type="radio" name="myGroup">
? <label for="mySwitch1"></label>
</div>
<div class="switch">
? <input id="mySwitch2" type="radio" name="myGroup" checked>
? <label for="mySwitch2"></label>
</div>
```
- 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 可見性