# Foundation 按鈕
## 按鈕樣式
Foundation 提供了 6 種按鈕樣式。 `.button` 類創建了一個藍色的按鈕并附有內邊距。不同顏色按鈕類為: `.secondary`, `.success`, `.info`, `.warning` 或 `.alert`:
### 實例
```
<button type="button" class="button">Default</button>
<button type="button" class="button secondary">Secondary</button>
<button type="button" class="button success">Success</button>
<button type="button" class="button info">Info</button>
<button type="button" class="button warning">Warning</button>
<button type="button" class="button alert">Alert</button>
```
按鈕類可以使用在 `<a>`, `<button>`, 或 `<input>` 元素:
### 實例
```
<a href="#" class="button info" role="button">Link Button</a>
<button type="button" class="button info">Button</button>
<input type="button" class="button info" value="Input Button">
<input type="submit" class="button info" value="Submit Button">
```
> 
> **為什么將 a 標簽的 href 設置為 # ?**
> 當我們不希望鏈接點擊跳轉并得到 "404" 頁面時,我們可以將 a 標簽的 href 設置為 #。
## 按鈕大小
我們可以使用 `.large`, `.small` 或 `.tiny` 類來設置按鈕大小:
### 實例
```
<button type="button" class="button large">Large</button>
<button type="button" class="button">Default</button>
<button type="button" class="button small">Small</button>
<button type="button" class="button tiny">Tiny</button>
```
## 圓角按鈕
可以使用 `.radius` 和 `.round` 類來設置圓角按鈕:
### 實例
```
<button type="button" class="button">Default Button</button>
<button type="button" class="button radius">Radius Button</button>
<button type="button" class="button round">Round Button</button>
```
## 延展按鈕
可以使用 `.expand` 類來設置按鈕的寬帶為 100%:
### 實例
```
<button type="button" class="button">Default Button</button>
<button type="button" class="button expand">Expanded Button</button>
```
## 禁用按鈕
可以使用 `.disabled` 類來設置按鈕不可點擊:
### 實例
```
<button type="button" class="button">Default Button</button>
<button type="button" class="button disabled">Disabled Button</button>
```
- 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 可見性